mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-25 05:31:24 +01:00
3rd arg of Z is bitfield
This commit is contained in:
parent
7206e46273
commit
ec2295219d
@ -578,12 +578,10 @@ bool DCCEXParser::parseZ(Print *stream, int16_t params, int16_t p[])
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 3: // <Z ID PIN INVERT>
|
case 3: // <Z ID PIN IFLAG>
|
||||||
if (p[0] < 0)
|
if (p[0] < 0 ||
|
||||||
return false;
|
p[1] > 255 || p[1] < 0 ||
|
||||||
if (p[1] > 255 || p[1] < 0)
|
p[2] < 0 || p[2] > 7 )
|
||||||
return false;
|
|
||||||
if (!(p[2] == 0 || p[2] == 1))
|
|
||||||
return false;
|
return false;
|
||||||
if (!Output::create(p[0], p[1], p[2], 1))
|
if (!Output::create(p[0], p[1], p[2], 1))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user