Skip to content
Snippets Groups Projects
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: default avatarRahix <rahix@rahix.de>
parent c27f3fcc
No related branches found
No related tags found
No related merge requests found
...@@ -162,6 +162,9 @@ __attribute__((noreturn)) static void pmic_die(float u_batt) ...@@ -162,6 +162,9 @@ __attribute__((noreturn)) static void pmic_die(float u_batt)
/* Grab the screen */ /* Grab the screen */
disp_forcelock(); disp_forcelock();
/* Turn it on in case it was off */
epic_disp_backlight(100);
/* Draw an error screen */ /* Draw an error screen */
epic_disp_clear(0x0000); epic_disp_clear(0x0000);
...@@ -336,6 +339,10 @@ void vPmicTask(void *pvParameters) ...@@ -336,6 +339,10 @@ void vPmicTask(void *pvParameters)
if (duration > 1000) { if (duration > 1000) {
disp_forcelock(); disp_forcelock();
/* Turn it on in case it was off */
epic_disp_backlight(100);
epic_disp_clear(0x0000); epic_disp_clear(0x0000);
char buf[20]; char buf[20];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment