mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-19 23:46:02 +01:00
Allow some pins that might be useful
This commit is contained in:
parent
2443e5903c
commit
8f1ed21aa3
@ -580,7 +580,7 @@ bool DCCEXParser::parseZ(Print *stream, int16_t params, int16_t p[])
|
|||||||
|
|
||||||
case 3: // <Z ID PIN IFLAG>
|
case 3: // <Z ID PIN IFLAG>
|
||||||
if (p[0] < 0 ||
|
if (p[0] < 0 ||
|
||||||
p[1] > 255 || p[1] <= 7 ||
|
p[1] > 255 || p[1] <= 1 || // Pins 0 and 1 are Serial to USB
|
||||||
p[2] < 0 || p[2] > 7 )
|
p[2] < 0 || p[2] > 7 )
|
||||||
return false;
|
return false;
|
||||||
if (!Output::create(p[0], p[1], p[2], 1))
|
if (!Output::create(p[0], p[1], p[2], 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user