1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +01:00

Disallow pins <= 7

This commit is contained in:
Harald Barth 2021-07-27 18:35:22 +02:00
parent c292f210a4
commit a88454dded

View File

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