Compilation fixes
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user