1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Conditon was always true

This commit is contained in:
Damjan Adamic 2014-11-16 20:12:58 +01:00
parent ede1f7ff6f
commit 35eb25d46e

View file

@ -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);
} }
} }