fix(bw): cannot select all numeric values for some fields (#5420)

This commit is contained in:
philmoz
2024-08-13 20:02:17 +10:00
committed by GitHub
parent 756bda0389
commit 0594dab1f3
5 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, int srcMin, int sr
newval += min<int>(rotaryEncoderGetAccel(), i_max - val);
}
while (isValueAvailable && !isValueAvailable(newval) && newval <= i_max) {
while (!(i_flags & INCDEC_SKIP_VAL_CHECK_FUNC) && isValueAvailable && !isValueAvailable(newval) && newval <= i_max) {
newval++;
}
@@ -96,7 +96,7 @@ int checkIncDec(event_t event, int val, int i_min, int i_max, int srcMin, int sr
newval -= min<int>(rotaryEncoderGetAccel(), val - i_min);
}
while (isValueAvailable && !isValueAvailable(newval) && newval >= i_min) {
while (!(i_flags & INCDEC_SKIP_VAL_CHECK_FUNC) && isValueAvailable && !isValueAvailable(newval) && newval >= i_min) {
newval--;
}