Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/WiThrottleProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ bool WiThrottleProtocol::processCommand(char *c, int len) {
else if (len > 8 && c[0]=='M' && c[2]=='L') {
return processRosterFunctionList(c[1], c+3, len-3);
}
else if (len > 5 && c[0]=='P' && c[1]=='T' && c[2]=='A') {
else if (len > 4 && c[0]=='P' && c[1]=='T' && c[2]=='A') {
processTurnoutAction(c+3, len-3);
return true;
}
Expand Down Expand Up @@ -1110,7 +1110,7 @@ void WiThrottleProtocol::processStealNeeded(char multiThrottle, char *c, int len
void WiThrottleProtocol::processTurnoutAction(char *c, int len) {
if (delegate) {
String s(c);
String systemName = s.substring(1,s.length()-1);
String systemName = s.substring(1);
TurnoutState state = TurnoutUnknown;
if (c[0]=='2') {
state = TurnoutClosed;
Expand All @@ -1132,7 +1132,7 @@ void WiThrottleProtocol::processTurnoutAction(char *c, int len) {
void WiThrottleProtocol::processRouteAction(char *c, int len) {
if (delegate) {
String s(c);
String systemName = s.substring(1,s.length()-1);
String systemName = s.substring(1);
RouteState state = RouteInconsistent;
if (c[0]=='2') {
state = RouteActive;
Expand Down