Conditon was always true
This commit is contained in:
@@ -6220,8 +6220,9 @@ void menuModelTelemetry(uint8_t event)
|
|||||||
lcd_putsAtt(0, y, STR_TELEMETRY_NEWSENSOR, attr);
|
lcd_putsAtt(0, y, STR_TELEMETRY_NEWSENSOR, attr);
|
||||||
if (attr && event==EVT_KEY_BREAK(KEY_ENTER)) {
|
if (attr && event==EVT_KEY_BREAK(KEY_ENTER)) {
|
||||||
s_editMode = 0;
|
s_editMode = 0;
|
||||||
s_currIdx = availableTelemetryIndex();
|
int res = availableTelemetryIndex();
|
||||||
if (s_currIdx >= 0) {
|
if (res >= 0) {
|
||||||
|
s_currIdx = res;
|
||||||
pushMenu(menuModelSensor);
|
pushMenu(menuModelSensor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user