This commit is contained in:
bsongis
2014-06-06 11:54:13 +02:00
parent 3d4d6ba313
commit 6511ae173d
5 changed files with 53 additions and 27 deletions
+2 -4
View File
@@ -249,15 +249,13 @@ bool getLogicalSwitch(uint8_t idx)
y = convertLswTelemValue(ls);
#if defined(FRSKY_HUB) && defined(GAUGES)
// Fill the telemetry bars threshold array
if (s == LS_FAMILY_OFS) {
uint8_t idx = v1-MIXSRC_FIRST_TELEM+1-TELEM_ALT;
if (idx < THLD_MAX) {
// Fill the threshold array
barsThresholds[idx] = 128 + ls->v2;
FILL_THRESHOLD(idx, ls->v2);
}
}
#endif
}
else if (v1 >= MIXSRC_GVAR1) {
y = ls->v2;