Compilation fixes

This commit is contained in:
Bertrand Songis
2019-04-16 22:11:05 +02:00
parent 0dd5f018c1
commit 4b70416481
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ void drawTopBar()
// lcdDrawSolidVerticalLine(batt_icon_x+FW+13, BAR_Y+2, 5); // lcdDrawSolidVerticalLine(batt_icon_x+FW+13, BAR_Y+2, 5);
// Rx battery // Rx battery
if (g_model.frsky.voltsSource) { // TODO should not be in frsky struct if (g_model.voltsSource) {
TelemetryItem & item = telemetryItems[g_model.frsky.voltsSource-1]; TelemetryItem & item = telemetryItems[g_model.voltsSource-1];
if (item.isAvailable()) { if (item.isAvailable()) {
int32_t value = item.value; int32_t value = item.value;
TelemetrySensor & sensor = g_model.telemetrySensors[g_model.frsky.altitudeSource-1]; TelemetrySensor & sensor = g_model.telemetrySensors[g_model.frsky.altitudeSource-1];
+4 -4
View File
@@ -310,8 +310,8 @@ TEST(FrSkySPORT, frskySetCellVoltage)
//display test //display test
lcdClear(); lcdClear();
#if !defined(COLORLCD) #if defined(PCBX9)
g_model.frsky.voltsSource = FRSKY_VOLTS_SOURCE_A1; g_model.voltsSource = FRSKY_VOLTS_SOURCE_A1;
#endif #endif
} }
@@ -390,8 +390,8 @@ TEST(FrSkySPORT, frskySetCellVoltageTwoSensors)
//display test //display test
lcdClear(); lcdClear();
#if !defined(COLORLCD) #if defined(PCBX9)
g_model.frsky.voltsSource = FRSKY_VOLTS_SOURCE_A1; g_model.voltsSource = FRSKY_VOLTS_SOURCE_A1;
#endif #endif
} }