Skip to content
Snippets Groups Projects
Commit 458fcb51 authored by danukeru's avatar danukeru
Browse files

Fix #104 - Add error message to update write fail to flash. Added bootloader...

Fix #104 - Add error message to update write fail to flash. Added bootloader specific error splash page function, for seamless reporting.
parent 76acf664
No related branches found
No related tags found
1 merge request!193Fix #104 - Add error message to . Added bootloader specific error splash...
......@@ -55,6 +55,21 @@ void bootloader_display_header(void)
bootloader_display_line(2, CARD10_VERSION, white);
}
void bootloader_display_error(char *errtype, char *line1, char *line2)
{
gfx_clear(&display_screen);
Color red = gfx_color(&display_screen, RED);
Color yellow = gfx_color(&display_screen, YELLOW);
Color white = gfx_color(&display_screen, WHITE);
bootloader_display_line(0, "[FATAL ERROR]", red);
bootloader_display_line(1, errtype, yellow);
bootloader_display_line(2, CARD10_VERSION, white);
bootloader_display_line(3, line1, white);
bootloader_display_line(4, line2, white);
}
/*
* Display a line of text on the display.
*/
......
......@@ -5,6 +5,7 @@
/* Display */
void bootloader_display_init(void);
void bootloader_display_header(void);
void bootloader_display_error(char *errtype, char *line1, char *line2);
void bootloader_display_line(int line, char *string, uint16_t color);
/* USB */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment