From 9399aca63dde1ee7337b8f706f96ae263a084fad Mon Sep 17 00:00:00 2001 From: Asbelos Date: Thu, 21 Jan 2021 23:13:08 +0000 Subject: [PATCH] Allow lower case keywords --- DCCEXParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index d7f45e9..8fd0561 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -143,6 +143,7 @@ int DCCEXParser::splitValues(int result[MAX_PARAMS], const byte *cmd) runningValue = 10 * runningValue + (hot - '0'); break; } + if (hot >= 'a' && hot <= 'z') hot=hot-'a'+'A'; // uppercase a..z if (hot >= 'A' && hot <= 'Z') { // Since JMRI got modified to send keywords in some rare cases, we need this