mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
OTA Work in progress
This commit is contained in:
committed by
Sebastien Leclerc
parent
3bd886b8df
commit
8aedca48a7
@@ -33,6 +33,11 @@ static void * console_thread();
|
||||
void console_start();
|
||||
static const char * TAG = "console";
|
||||
|
||||
#if (RECOVERY_APPLICATION )
|
||||
extern void start_ota(const char * bin_url);
|
||||
#endif
|
||||
|
||||
|
||||
/* Prompt to be printed before each line.
|
||||
* This can be customized, made dynamic, etc.
|
||||
*/
|
||||
@@ -235,7 +240,13 @@ void console_start() {
|
||||
esp_console_register_help_command();
|
||||
register_system();
|
||||
register_nvs();
|
||||
#if !RECOVERY_APPLICATION
|
||||
#pragma message "compiling for squeezelite""
|
||||
register_squeezelite();
|
||||
#else
|
||||
#pragma message "compiling for recovery"
|
||||
register_ota_cmd();
|
||||
#endif
|
||||
register_i2ctools();
|
||||
printf("\n"
|
||||
"Type 'help' to get the list of commands.\n"
|
||||
|
||||
Reference in New Issue
Block a user