1
0
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:
Harald Barth
2021-07-24 21:11:18 +02:00
parent 88949358b4
commit cb64725b42
4 changed files with 20 additions and 11 deletions

View File

@@ -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"));