mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05: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);
|
||||
if (attr && event==EVT_KEY_BREAK(KEY_ENTER)) {
|
||||
s_editMode = 0;
|
||||
s_currIdx = availableTelemetryIndex();
|
||||
if (s_currIdx >= 0) {
|
||||
int res = availableTelemetryIndex();
|
||||
if (res >= 0) {
|
||||
s_currIdx = res;
|
||||
pushMenu(menuModelSensor);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue