1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 15:46:14 +01:00

warnings cleared

This commit is contained in:
Asbelos 2024-11-06 01:05:35 +00:00
parent 03bd1e897a
commit 8081bfdf1e
2 changed files with 2 additions and 1 deletions

View File

@ -680,7 +680,7 @@ void RMFT2::loop2() {
case OPCODE_RESET: case OPCODE_RESET:
{ {
auto count=getOperand(1); auto count=getOperand(1);
for (int i=0;i<count;i++) { for (uint16_t i=0;i<count;i++) {
killBlinkOnVpin(operand+i); killBlinkOnVpin(operand+i);
IODevice::write(operand+i,opcode==OPCODE_SET); IODevice::write(operand+i,opcode==OPCODE_SET);
} }

View File

@ -121,6 +121,7 @@ void _begin() {
// Configuration isn't done frequently so we can use blocking I2C calls here, and so buffers can // Configuration isn't done frequently so we can use blocking I2C calls here, and so buffers can
// be allocated from the stack to reduce RAM allocation. // be allocated from the stack to reduce RAM allocation.
bool _configure(VPIN vpin, ConfigTypeEnum configType, int paramCount, int params[]) override { bool _configure(VPIN vpin, ConfigTypeEnum configType, int paramCount, int params[]) override {
(void)configType; (void)params; // unused
if(_verPrint) DIAG(F("_configure() driver IO_EXSensorCAM v0.%d.%d vpin: %d "), driverVer/100,driverVer%100,vpin); if(_verPrint) DIAG(F("_configure() driver IO_EXSensorCAM v0.%d.%d vpin: %d "), driverVer/100,driverVer%100,vpin);
_verPrint=false; //only give driver versions once _verPrint=false; //only give driver versions once
if (paramCount != 1) return false; if (paramCount != 1) return false;