mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 14:07:11 +03:00
tweaking recovery display
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
#include "gds_draw.h"
|
#include "gds_draw.h"
|
||||||
#include "gds_text.h"
|
#include "gds_text.h"
|
||||||
#include "gds_font.h"
|
#include "gds_font.h"
|
||||||
|
#include "display.h"
|
||||||
#include "cmd_squeezelite.h"
|
#include "cmd_squeezelite.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
pthread_t thread_console;
|
pthread_t thread_console;
|
||||||
@@ -191,6 +191,7 @@ void console_start() {
|
|||||||
if(!is_serial_suppressed()){
|
if(!is_serial_suppressed()){
|
||||||
printf("\n"
|
printf("\n"
|
||||||
#if RECOVERY_APPLICATION
|
#if RECOVERY_APPLICATION
|
||||||
|
|
||||||
"****************************************************************\n"
|
"****************************************************************\n"
|
||||||
"RECOVERY APPLICATION\n"
|
"RECOVERY APPLICATION\n"
|
||||||
"This mode is used to flash Squeezelite into the OTA partition\n"
|
"This mode is used to flash Squeezelite into the OTA partition\n"
|
||||||
@@ -207,7 +208,11 @@ void console_start() {
|
|||||||
#endif
|
#endif
|
||||||
"\n"
|
"\n"
|
||||||
"\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 */
|
/* Figure out if the terminal supports escape sequences */
|
||||||
int probe_status = linenoiseProbe();
|
int probe_status = linenoiseProbe();
|
||||||
if (probe_status) { /* zero indicates success */
|
if (probe_status) { /* zero indicates success */
|
||||||
@@ -244,9 +249,7 @@ void console_start() {
|
|||||||
#if !RECOVERY_APPLICATION
|
#if !RECOVERY_APPLICATION
|
||||||
// process autoexec locally, as we're not going to start the console thread
|
// process autoexec locally, as we're not going to start the console thread
|
||||||
process_autoexec();
|
process_autoexec();
|
||||||
#else
|
|
||||||
GDS_ClearExt(display, true);
|
|
||||||
GDS_TextLine(display, 1, GDS_TEXT_LEFT, GDS_TEXT_UPDATE, "Recovery mode");
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user