mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-07-28 09:53:45 +02:00
make output ID two bytes
This commit is contained in:
@@ -579,6 +579,12 @@ 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))
|
||||
return false;
|
||||
if (!Output::create(p[0], p[1], p[2], 1))
|
||||
return false;
|
||||
StringFormatter::send(stream, F("<O>\n"));
|
||||
|
Reference in New Issue
Block a user