1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-11 13:21:01 +01:00

Merge branch 'output-wordsize' of github.com:DCC-EX/CommandStation-EX into output-wordsize

This commit is contained in:
Harald Barth 2021-07-25 22:54:18 +02:00
commit 1fab0f586b

View File

@ -578,12 +578,10 @@ bool DCCEXParser::parseZ(Print *stream, int16_t params, int16_t p[])
}
return true;
case 3: // <Z ID PIN INVERT>
if (p[0] < 0)
return false;
if (p[1] > 255 || p[1] < 0)
return false;
if (!(p[2] == 0 || p[2] == 1))
case 3: // <Z ID PIN IFLAG>
if (p[0] < 0 ||
p[1] > 255 || p[1] < 0 ||
p[2] < 0 || p[2] > 7 )
return false;
if (!Output::create(p[0], p[1], p[2], 1))
return false;