diff --git a/stm32/display.c b/stm32/display.c index 329a3c5..f34f291 100644 --- a/stm32/display.c +++ b/stm32/display.c @@ -190,6 +190,8 @@ void disp_show(uint8_t *img) { #if !DISP_LIGHT_SENSE void disp_set_brigthness(uint16_t v) { ctx_.dark_level = v; + measure_light(&ctx_); + ctx_.delay = ctx_.target_delay; } #else void disp_set_dark_level(int v) {