1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-02-19 23:46:02 +01:00

Remove warnings

This commit is contained in:
Harald Barth 2023-01-27 19:42:55 +01:00
parent 9e5d780c14
commit c91d66549c
3 changed files with 10 additions and 6 deletions

View File

@ -748,7 +748,7 @@ void RMFT2::loop2() {
break; break;
case OPCODE_IFLOCO: // do if the loco is the active one 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; break;
case OPCODE_IFNOT: // do next operand if sensor not set case OPCODE_IFNOT: // do next operand if sensor not set

View File

@ -135,6 +135,7 @@ private:
} }
void _loop(unsigned long currentMicros) override { void _loop(unsigned long currentMicros) override {
(void)currentMicros; // remove warning
_commandBuffer[0] = EXIORDD; _commandBuffer[0] = EXIORDD;
I2CManager.read(_i2cAddress, _digitalInputStates, _digitalPinBytes, _commandBuffer, 1); I2CManager.read(_i2cAddress, _digitalInputStates, _digitalPinBytes, _commandBuffer, 1);
_commandBuffer[0] = EXIORDAN; _commandBuffer[0] = EXIORDAN;

View File

@ -533,6 +533,8 @@ void WiThrottle::sendRoster(Print* stream) {
RMFT2::getRosterName(cabid),cabid,cabid<128?'S':'L'); RMFT2::getRosterName(cabid),cabid,cabid<128?'S':'L');
} }
StringFormatter::send(stream,F("\n")); StringFormatter::send(stream,F("\n"));
#else
(void)stream; // remove warning
#endif #endif
} }
void WiThrottle::sendRoutes(Print* stream) { void WiThrottle::sendRoutes(Print* stream) {
@ -554,7 +556,8 @@ void WiThrottle::sendRoutes(Print* stream) {
StringFormatter::send(stream,F("]\\[R%d}|{%S}|{2"),id,desc); StringFormatter::send(stream,F("]\\[R%d}|{%S}|{2"),id,desc);
} }
StringFormatter::send(stream,F("\n")); StringFormatter::send(stream,F("\n"));
#else
(void)stream; // remove warning
#endif #endif
} }