From 86649cdca6b6254a815bb81d6b8ba3853cd9b177 Mon Sep 17 00:00:00 2001 From: philmoz Date: Thu, 25 Jul 2024 18:35:03 +1000 Subject: [PATCH] feat(bw128): allow long press to open curve edit without entering edit mode (#5320) --- radio/src/gui/128x64/model_input_edit.cpp | 2 +- radio/src/gui/128x64/model_mix_edit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/128x64/model_input_edit.cpp b/radio/src/gui/128x64/model_input_edit.cpp index a4a14ab49..46759dd5c 100644 --- a/radio/src/gui/128x64/model_input_edit.cpp +++ b/radio/src/gui/128x64/model_input_edit.cpp @@ -131,7 +131,7 @@ void menuModelExpoOne(event_t event) break; case EXPO_FIELD_CURVE: - editCurveRef(EXPO_ONE_2ND_COLUMN, y, ed->curve, s_editMode > 0 ? event : 0, RIGHT | attr); + editCurveRef(EXPO_ONE_2ND_COLUMN, y, ed->curve, event, RIGHT | attr); break; #if defined(FLIGHT_MODES) diff --git a/radio/src/gui/128x64/model_mix_edit.cpp b/radio/src/gui/128x64/model_mix_edit.cpp index 03ccd9c68..87d2f858a 100644 --- a/radio/src/gui/128x64/model_mix_edit.cpp +++ b/radio/src/gui/128x64/model_mix_edit.cpp @@ -162,7 +162,7 @@ void menuModelMixOne(event_t event) lcdDrawTextAlignedLeft(y, STR_CURVE); s_currSrcRaw = md2->srcRaw; s_currScale = 0; - editCurveRef(MIXES_2ND_COLUMN, y, md2->curve, s_editMode > 0 ? event : 0, attr); + editCurveRef(MIXES_2ND_COLUMN, y, md2->curve, event, attr); break; #if defined(FLIGHT_MODES)