Improve FAI sensor handling (#7801)
Display specific FAI message on forbiden sensors
This commit is contained in:
@@ -202,6 +202,11 @@ void drawSensorCustomValue(coord_t x, coord_t y, uint8_t sensor, int32_t value,
|
||||
return;
|
||||
}
|
||||
|
||||
if (IS_FAI_FORBIDDEN(MIXSRC_FIRST_TELEM + 3 * sensor)) {
|
||||
lcdDrawText(x, y, "FAI mode", flags);
|
||||
return;
|
||||
}
|
||||
|
||||
TelemetryItem & telemetryItem = telemetryItems[sensor];
|
||||
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[sensor];
|
||||
|
||||
|
||||
@@ -353,6 +353,11 @@ void drawSensorCustomValue(coord_t x, coord_t y, uint8_t sensor, int32_t value,
|
||||
return;
|
||||
}
|
||||
|
||||
if (IS_FAI_FORBIDDEN(MIXSRC_FIRST_TELEM + 3 * sensor)) {
|
||||
lcdDrawText(x, y, "FAI mode", flags);
|
||||
return;
|
||||
}
|
||||
|
||||
TelemetryItem & telemetryItem = telemetryItems[sensor];
|
||||
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[sensor];
|
||||
|
||||
|
||||
+3
-3
@@ -22,7 +22,7 @@
|
||||
#ifndef OPENTX_OPTIONS_H
|
||||
#define OPENTX_OPTIONS_H
|
||||
|
||||
static const char * options[] = {
|
||||
static const char * const options[] = {
|
||||
#if defined(AUTOUPDATE)
|
||||
"autoupdate",
|
||||
#endif
|
||||
@@ -33,10 +33,10 @@ static const char * options[] = {
|
||||
"eu",
|
||||
#endif
|
||||
#if defined(FAI)
|
||||
"faimode",
|
||||
"FAImode",
|
||||
#endif
|
||||
#if defined(FAI_CHOICE)
|
||||
"faichoice",
|
||||
"FAIchoice",
|
||||
#endif
|
||||
#if defined(MODULE_PROTOCOL_FLEX)
|
||||
"flexr9m",
|
||||
|
||||
Reference in New Issue
Block a user