diff --git a/EXRAIL2.cpp b/EXRAIL2.cpp index 94d7481..e925d96 100644 --- a/EXRAIL2.cpp +++ b/EXRAIL2.cpp @@ -748,7 +748,7 @@ void RMFT2::loop2() { break; case OPCODE_IFLOCO: // do if the loco is the active one - skipIf=loco!=operand; + skipIf=loco!=(uint16_t)operand; // bad luck if someone enters negative loco numbers into EXRAIL break; case OPCODE_IFNOT: // do next operand if sensor not set diff --git a/IO_EXIOExpander.h b/IO_EXIOExpander.h index cce101b..d54feac 100644 --- a/IO_EXIOExpander.h +++ b/IO_EXIOExpander.h @@ -135,6 +135,7 @@ private: } void _loop(unsigned long currentMicros) override { + (void)currentMicros; // remove warning _commandBuffer[0] = EXIORDD; I2CManager.read(_i2cAddress, _digitalInputStates, _digitalPinBytes, _commandBuffer, 1); _commandBuffer[0] = EXIORDAN; @@ -209,4 +210,4 @@ private: }; }; -#endif \ No newline at end of file +#endif diff --git a/WiThrottle.cpp b/WiThrottle.cpp index 920ebd6..69c5d87 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -525,7 +525,7 @@ void WiThrottle::sendTurnouts(Print* stream) { } void WiThrottle::sendRoster(Print* stream) { rosterSent=true; - #ifdef EXRAIL_ACTIVE +#ifdef EXRAIL_ACTIVE StringFormatter::send(stream,F("RL%d"), RMFT2::rosterNameCount); for (int16_t r=0;r=0) StringFormatter::send(stream,F("M%cA%c%d<;>F%d%d\n"),myLocos[loco].throttle,LorS(locoid),locoid,fstate,fKey); } -} \ No newline at end of file +}