mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Conditon was always true
This commit is contained in:
parent
ede1f7ff6f
commit
35eb25d46e
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue