diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index f88b2326d..98d2cedd0 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -118,7 +118,7 @@ class SwitchesConversionTable: public ConversionTable { if (version >= 218) { addConversion(RawSwitch(SWITCH_TYPE_TELEMETRY, -1), -val+offset); addConversion(RawSwitch(SWITCH_TYPE_TELEMETRY, 1), val++); - for (unsigned i=1; i<=CPN_MAX_SENSORS; i++) { + for (int i=1; i<=CPN_MAX_SENSORS; i++) { addConversion(RawSwitch(SWITCH_TYPE_SENSOR, -i), -val+offset); addConversion(RawSwitch(SWITCH_TYPE_SENSOR, i), val++); } diff --git a/companion/src/firmwares/sensordata.h b/companion/src/firmwares/sensordata.h index 15b398fb8..a4555c414 100644 --- a/companion/src/firmwares/sensordata.h +++ b/companion/src/firmwares/sensordata.h @@ -23,7 +23,7 @@ #include -constexpr unsigned CPN_MAX_SENSORS = 60; +constexpr int CPN_MAX_SENSORS = 60; class SensorData { Q_DECLARE_TR_FUNCTIONS(SensorData)