diff --git a/vertushka_esp32s3/vertushka_esp32s3.ino b/vertushka_esp32s3/vertushka_esp32s3.ino index 1a7fdf2..b82b0b3 100644 --- a/vertushka_esp32s3/vertushka_esp32s3.ino +++ b/vertushka_esp32s3/vertushka_esp32s3.ino @@ -201,15 +201,17 @@ static void buildUi() { } // ==== Callbacks энкодера и кнопки ==== +// Энкодер меняет step_idx в любом режиме. В СТОПе applyState() оставит ESC +// на INIT_VER (мотор не дёрнется), но дисплей покажет выбранную ступень. static void onKnobLeft(int count, void *user) { - if (motor_run && step_idx > 0) { + if (step_idx > 0) { step_idx--; applyState(); ui_dirty = true; } } static void onKnobRight(int count, void *user) { - if (motor_run && step_idx < CALIB_N - 1) { + if (step_idx < CALIB_N - 1) { step_idx++; applyState(); ui_dirty = true;