Cosmetics
This commit is contained in:
@@ -409,6 +409,7 @@ void onSensorMenu(const char * result)
|
||||
|
||||
void menuModelTelemetryFrsky(event_t event)
|
||||
{
|
||||
// TODO rather an handler for this
|
||||
if (warningResult) {
|
||||
warningResult = 0;
|
||||
for (int i=0; i<MAX_TELEMETRY_SENSORS; i++) {
|
||||
@@ -529,7 +530,7 @@ void menuModelTelemetryFrsky(event_t event)
|
||||
lcdDrawText(0, y, STR_DELETE_ALL_SENSORS, attr);
|
||||
if (attr) {
|
||||
s_editMode = 0;
|
||||
if (event==EVT_KEY_LONG(KEY_ENTER)) {
|
||||
if (event == EVT_KEY_LONG(KEY_ENTER)) {
|
||||
killEvents(KEY_ENTER);
|
||||
POPUP_CONFIRMATION(STR_CONFIRMDELETE, nullptr);
|
||||
}
|
||||
|
||||
@@ -485,8 +485,7 @@ bool isValidIdAndInstance(uint16_t id, uint8_t instance)
|
||||
|
||||
for (int index=0; index<MAX_TELEMETRY_SENSORS; index++) {
|
||||
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[index];
|
||||
if (telemetrySensor.type == TELEM_TYPE_CUSTOM && telemetrySensor.id == id)
|
||||
{
|
||||
if (telemetrySensor.type == TELEM_TYPE_CUSTOM && telemetrySensor.id == id) {
|
||||
sensorFound = true;
|
||||
if (telemetrySensor.instance == instance || g_model.ignoreSensorIds)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user