1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

Accessory command validations

This commit is contained in:
Asbelos
2020-06-23 20:00:34 +01:00
parent e7e4d4fbd9
commit 030cb654b4
2 changed files with 7 additions and 1 deletions

View File

@@ -133,7 +133,8 @@ void DCCEXParser::parse(Print & stream, const char *com) {
break;
case 'a': // ACCESSORY <a ADDRESS SUBADDRESS ACTIVATE>
DCC::setAccessory(p[0],p[1],p[2]);
if(p[2] != p[2] & 1) return;
DCC::setAccessory(p[0],p[1],p[2]==1);
return;
case 'T': // TURNOUT <T ...>