Verified Commit 30ae2751 authored by Rahix's avatar Rahix
Browse files

fix(pmic): Turn on display before printing



Fix the display backlight staying off while the pmic task prints its
messages (power-off/sleep & battery critial).
Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent c27f3fcc
......@@ -162,6 +162,9 @@ __attribute__((noreturn)) static void pmic_die(float u_batt)
/* Grab the screen */
disp_forcelock();
/* Turn it on in case it was off */
epic_disp_backlight(100);
/* Draw an error screen */
epic_disp_clear(0x0000);
......@@ -336,6 +339,10 @@ void vPmicTask(void *pvParameters)
if (duration > 1000) {
disp_forcelock();
/* Turn it on in case it was off */
epic_disp_backlight(100);
epic_disp_clear(0x0000);
char buf[20];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment