set backlight, dont disable on shutdown

This commit is contained in:
2026-09-28 21:25:33 +02:00
parent 84b8207531
commit 106de77287

View File

@@ -99,6 +99,7 @@ static void *display_thread(void *arg) {
.baud = 0010002, // from termios-baud.h, B115200
};
lcd_init(&lcd);
lcd_set_brightness(&lcd, 255);
lcd_set_backlight(&lcd, true);
lcd_set_contrast(&lcd, lcd_contrast);
@@ -175,7 +176,6 @@ static void *display_thread(void *arg) {
}
lcd_write_buf(&lcd, 2, 16, "Goodbye"); // center
lcd_set_backlight(&lcd, false);
lcd_flush_buf(&lcd);
lcd_close(&lcd);
applog(LOG_WRN, "display thread stopped");