Compilation error when GAUGES=NO

This commit is contained in:
bsongis
2014-06-12 15:59:54 +02:00
parent a596001338
commit 9a83325119
+3
View File
@@ -246,6 +246,7 @@ bool getLogicalSwitch(uint8_t idx)
y = convertLswTelemValue(ls);
#if defined(GAUGES)
// Fill the telemetry bars threshold array
if (s == LS_FAMILY_OFS) {
uint8_t idx = v1-MIXSRC_FIRST_TELEM+1-TELEM_ALT;
@@ -253,6 +254,8 @@ bool getLogicalSwitch(uint8_t idx)
FILL_THRESHOLD(idx, ls->v2);
}
}
#endif
}
else if (v1 >= MIXSRC_GVAR1) {
y = ls->v2;