From 0f964807808ac1e1e10a028e4ca3eef6384f74ca Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Mon, 7 Mar 2022 16:23:37 -0800 Subject: [PATCH] fix disp_set_brigthness() --- stm32/display.c | 2 ++ 1 file changed, 2 insertions(+) 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) {