1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 16:16:13 +01:00

add READ_REGISTER name to Z21 parser

This commit is contained in:
Harald Barth 2024-03-24 09:33:44 +01:00
parent 16362c14cc
commit e6dde5a11c
2 changed files with 3 additions and 1 deletions

View File

@ -780,7 +780,7 @@ bool Z21Throttle::parse(byte *networkPacket, int len) {
done = true;
break;
case LAN_X_HEADER_SET_TURNOUT:
case 0x22:
case LAN_X_HEADER_READ_REGISTER:
break;
}
break;

View File

@ -182,6 +182,7 @@ class Z21Throttle {
#define LAN_GET_CONFIG 0x12
#define LAN_X_HEADER_GENERAL 0x21
#define LAN_X_HEADER_READ_REGISTER 0x22
#define LAN_X_HEADER_SET_STOP 0x80
#define LAN_X_HEADER_GET_FIRMWARE_VERSION 0xF1 //0x141 0x21 0x21 0x00
#define LAN_X_HEADER_GET_LOCO_INFO 0xE3
@ -192,6 +193,7 @@ class Z21Throttle {
#define LAN_X_HEADER_CV_WRITE 0x24
#define LAN_X_HEADER_CV_POM 0xE6
#define LAN_X_DB0_READ_REGISTER 0x11
#define LAN_X_DB0_GET_VERSION 0x21
#define LAN_X_DB0_GET_STATUS 0x24
#define LAN_X_DB0_SET_TRACK_POWER_OFF 0x80