From d6c0ae4645b8ffb77bf21b777f185cbc4e7bb880 Mon Sep 17 00:00:00 2001 From: DanielGeA Date: Sat, 30 May 2020 11:06:37 +0100 Subject: [PATCH] Fix 6853 (#7643) --- radio/src/gui/128x64/model_curve_edit.cpp | 3 +++ radio/src/gui/212x64/model_curve_edit.cpp | 3 +++ radio/src/gui/480x272/model_curves.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/radio/src/gui/128x64/model_curve_edit.cpp b/radio/src/gui/128x64/model_curve_edit.cpp index 8f606072c..2dfdaf567 100644 --- a/radio/src/gui/128x64/model_curve_edit.cpp +++ b/radio/src/gui/128x64/model_curve_edit.cpp @@ -125,6 +125,9 @@ void menuModelCurveOne(event_t event) lcdDrawNumber(INDENT_WIDTH, 6*FH+1, 5+crv.points, LEFT|attr); lcdDrawText(lcdLastRightPos, 6*FH+1, STR_PTS, attr); if (attr) { +#if defined(ROTARY_ENCODER_NAVIGATION) + rotencSpeed = ROTENC_LOWSPEED; +#endif int8_t count = checkIncDecModel(event, crv.points, -3, 12); // 2pts - 17pts if (checkIncDec_Ret) { int8_t newPoints[MAX_POINTS_PER_CURVE]; diff --git a/radio/src/gui/212x64/model_curve_edit.cpp b/radio/src/gui/212x64/model_curve_edit.cpp index 681480602..5cc622903 100644 --- a/radio/src/gui/212x64/model_curve_edit.cpp +++ b/radio/src/gui/212x64/model_curve_edit.cpp @@ -131,6 +131,9 @@ void menuModelCurveOne(event_t event) lcdDrawNumber(INDENT_WIDTH, 6*FH+1, 5+crv.points, LEFT|attr); lcdDrawText(lcdLastRightPos, 6*FH+1, STR_PTS, attr); if (attr) { +#if defined(ROTARY_ENCODER_NAVIGATION) + rotencSpeed = ROTENC_LOWSPEED; +#endif int8_t count = checkIncDecModel(event, crv.points, -3, 12); // 2pts - 17pts if (checkIncDec_Ret) { int8_t newPoints[MAX_POINTS_PER_CURVE]; diff --git a/radio/src/gui/480x272/model_curves.cpp b/radio/src/gui/480x272/model_curves.cpp index a7f8adf29..e53f9aad4 100644 --- a/radio/src/gui/480x272/model_curves.cpp +++ b/radio/src/gui/480x272/model_curves.cpp @@ -155,6 +155,9 @@ bool menuModelCurveOne(event_t event) lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + FH, STR_COUNT); lcdDrawNumber(MODEL_CURVE_ONE_2ND_COLUMN, MENU_CONTENT_TOP + FH, 5+crv.points, LEFT|attr, 0, NULL, STR_PTS); if (attr) { +#if defined(ROTARY_ENCODER_NAVIGATION) + rotencSpeed = ROTENC_LOWSPEED; +#endif int count = checkIncDecModel(event, crv.points, -3, 12); // 2pts - 17pts if (checkIncDec_Ret) { int newPoints[MAX_POINTS_PER_CURVE];