mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
fix broken 'a' command after broken commit c7b3817
This commit is contained in:
parent
14dc569366
commit
632e9335f3
@ -316,7 +316,7 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)
|
|||||||
((address & 0x01FF) != address) // invalid address (limit 9 bits )
|
((address & 0x01FF) != address) // invalid address (limit 9 bits )
|
||||||
|| ((subaddress & 0x03) != subaddress) // invalid subaddress (limit 2 bits )
|
|| ((subaddress & 0x03) != subaddress) // invalid subaddress (limit 2 bits )
|
||||||
|| ((p[activep] & 0x01) != p[activep]) // invalid activate 0|1
|
|| ((p[activep] & 0x01) != p[activep]) // invalid activate 0|1
|
||||||
|| ((onoff & 0x01) != onoff) // invalid onoff 0|1
|
|| (onoff > 2) // invalid onoff 0|1|2
|
||||||
) break;
|
) break;
|
||||||
// Honour the configuration option (config.h) which allows the <a> command to be reversed
|
// Honour the configuration option (config.h) which allows the <a> command to be reversed
|
||||||
#ifdef DCC_ACCESSORY_COMMAND_REVERSE
|
#ifdef DCC_ACCESSORY_COMMAND_REVERSE
|
||||||
|
Loading…
Reference in New Issue
Block a user