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);
// 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];