mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Change SO43 range fro 1..100 to 1..255
Change SO43 range fro 1..100 to 1..255 (#10511)
This commit is contained in:
parent
38b9eabc59
commit
f5dfb1b7f6
@ -131,7 +131,7 @@ void ICACHE_RAM_ATTR RotaryIsrArg(void *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RotaryInitMaxSteps(void) {
|
void RotaryInitMaxSteps(void) {
|
||||||
if ((0 == Settings.param[P_ROTARY_MAX_STEP]) || (Settings.param[P_ROTARY_MAX_STEP] > 100)) {
|
if (0 == Settings.param[P_ROTARY_MAX_STEP]) {
|
||||||
Settings.param[P_ROTARY_MAX_STEP] = ROTARY_MAX_STEPS; // SetOption43
|
Settings.param[P_ROTARY_MAX_STEP] = ROTARY_MAX_STEPS; // SetOption43
|
||||||
}
|
}
|
||||||
uint8_t max_steps = Settings.param[P_ROTARY_MAX_STEP];
|
uint8_t max_steps = Settings.param[P_ROTARY_MAX_STEP];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user