chore: Simplified version of #1561

* Merge branch 'main' of https://github.com/eshifri/edgetx

* fix SF repeat feield problem (#1539)

* fix: Radio SF repeat value not stopping at first entry when scrolling. Simplified.
This commit is contained in:
eshifri
2022-02-08 09:54:14 +10:00
committed by GitHub
parent 12c6f22145
commit 6d50917eca
+1 -5
View File
@@ -339,11 +339,7 @@ class SpecialFunctionEditPage : public Page
0, COLOR_THEME_PRIMARY1);
auto repeat = new NumberEdit(
specialFunctionOneWindow, grid.getFieldSlot(2, 1), -1,
60 / CFN_PLAY_REPEAT_MUL,
[cfn]() {
int32_t value = (int8_t)CFN_PLAY_REPEAT(cfn);
return value;
},
60 / CFN_PLAY_REPEAT_MUL, GET_DEFAULT((int8_t)CFN_PLAY_REPEAT(cfn)),
SET_DEFAULT(CFN_PLAY_REPEAT(cfn)));
repeat->setDisplayHandler(
[](BitmapBuffer *dc, LcdFlags flags, int32_t value) {