Compilation fixes
This commit is contained in:
@@ -98,8 +98,8 @@ void drawTopBar()
|
||||
// lcdDrawSolidVerticalLine(batt_icon_x+FW+13, BAR_Y+2, 5);
|
||||
|
||||
// Rx battery
|
||||
if (g_model.frsky.voltsSource) { // TODO should not be in frsky struct
|
||||
TelemetryItem & item = telemetryItems[g_model.frsky.voltsSource-1];
|
||||
if (g_model.voltsSource) {
|
||||
TelemetryItem & item = telemetryItems[g_model.voltsSource-1];
|
||||
if (item.isAvailable()) {
|
||||
int32_t value = item.value;
|
||||
TelemetrySensor & sensor = g_model.telemetrySensors[g_model.frsky.altitudeSource-1];
|
||||
|
||||
@@ -310,8 +310,8 @@ TEST(FrSkySPORT, frskySetCellVoltage)
|
||||
//display test
|
||||
lcdClear();
|
||||
|
||||
#if !defined(COLORLCD)
|
||||
g_model.frsky.voltsSource = FRSKY_VOLTS_SOURCE_A1;
|
||||
#if defined(PCBX9)
|
||||
g_model.voltsSource = FRSKY_VOLTS_SOURCE_A1;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -390,8 +390,8 @@ TEST(FrSkySPORT, frskySetCellVoltageTwoSensors)
|
||||
//display test
|
||||
lcdClear();
|
||||
|
||||
#if !defined(COLORLCD)
|
||||
g_model.frsky.voltsSource = FRSKY_VOLTS_SOURCE_A1;
|
||||
#if defined(PCBX9)
|
||||
g_model.voltsSource = FRSKY_VOLTS_SOURCE_A1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user