From c0a6f3f9e32fe9570b3700167c0d8eb866f01b22 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 29 Nov 2016 19:39:38 +0100 Subject: [PATCH] =?UTF-8?q?[X7D/SKY9X]=C2=A0Telemetry=20screen=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- radio/src/gui/128x64/model_telemetry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/128x64/model_telemetry.cpp b/radio/src/gui/128x64/model_telemetry.cpp index 2c5e8e496..2ebb5ecd1 100644 --- a/radio/src/gui/128x64/model_telemetry.cpp +++ b/radio/src/gui/128x64/model_telemetry.cpp @@ -546,8 +546,11 @@ void menuModelTelemetryFrsky(event_t event) case ITEM_TELEMETRY_PROTOCOL_TYPE: lcdDrawTextAlignedLeft(y, STR_TELEMETRY_TYPE); lcdDrawTextAtIndex(TELEM_COL2, y, STR_TELEMETRY_PROTOCOLS, g_model.telemetryProtocol, attr); - g_model.telemetryProtocol = checkIncDec(event, g_model.telemetryProtocol, PROTOCOL_TELEMETRY_FIRST, PROTOCOL_TELEMETRY_LAST, EE_MODEL, isTelemetryProtocolAvailable); + if (attr) { + g_model.telemetryProtocol = checkIncDec(event, g_model.telemetryProtocol, PROTOCOL_TELEMETRY_FIRST, PROTOCOL_TELEMETRY_LAST, EE_MODEL, isTelemetryProtocolAvailable); + } break; + #if defined(REVX) case ITEM_TELEMETRY_INVERTED_SERIAL: ON_OFF_MENU_ITEM(g_model.moduleData[EXTERNAL_MODULE].invertedSerial, TELEM_COL2, y, STR_INVERTED_SERIAL, attr, event);