From 439f5b88510efd97638b2900c93974e92d88b3f4 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 27 Feb 2020 21:33:02 -0500 Subject: [PATCH] tweaking recovery display --- main/console.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main/console.c b/main/console.c index 5daa7164..6accf459 100644 --- a/main/console.c +++ b/main/console.c @@ -31,7 +31,7 @@ #include "gds_draw.h" #include "gds_text.h" #include "gds_font.h" - +#include "display.h" #include "cmd_squeezelite.h" #include "config.h" pthread_t thread_console; @@ -191,6 +191,7 @@ void console_start() { if(!is_serial_suppressed()){ printf("\n" #if RECOVERY_APPLICATION + "****************************************************************\n" "RECOVERY APPLICATION\n" "This mode is used to flash Squeezelite into the OTA partition\n" @@ -207,7 +208,11 @@ void console_start() { #endif "\n" "\n"); +#if RECOVERY_APPLICATION + GDS_SetFont(display, &Font_droid_sans_fallback_15x17 ); + GDS_TextPos(display, GDS_FONT_MEDIUM, GDS_TEXT_CENTERED, GDS_TEXT_CLEAR | GDS_TEXT_UPDATE, "RECOVERY"); +#endif /* Figure out if the terminal supports escape sequences */ int probe_status = linenoiseProbe(); if (probe_status) { /* zero indicates success */ @@ -244,9 +249,7 @@ void console_start() { #if !RECOVERY_APPLICATION // process autoexec locally, as we're not going to start the console thread process_autoexec(); -#else - GDS_ClearExt(display, true); - GDS_TextLine(display, 1, GDS_TEXT_LEFT, GDS_TEXT_UPDATE, "Recovery mode"); + #endif } }