mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 19:47:02 +03:00
Fix for I2S noise burst when ESP32 panic occurs (#437)
This commit is contained in:
@@ -62,6 +62,7 @@ static void register_free();
|
||||
static void register_setdevicename();
|
||||
static void register_heap();
|
||||
static void register_dump_heap();
|
||||
static void register_abort();
|
||||
static void register_version();
|
||||
static void register_restart();
|
||||
#if CONFIG_WITH_CONFIG_UI
|
||||
@@ -90,6 +91,7 @@ void register_system()
|
||||
register_free();
|
||||
register_heap();
|
||||
register_dump_heap();
|
||||
register_abort();
|
||||
register_version();
|
||||
register_restart();
|
||||
register_factory_boot();
|
||||
@@ -144,6 +146,27 @@ static void register_version()
|
||||
ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) );
|
||||
}
|
||||
|
||||
/* 'abort' command */
|
||||
static int cmd_abort(int argc, char **argv)
|
||||
{
|
||||
cmd_send_messaging(argv[0],MESSAGING_INFO,"ABORT!\r\n");
|
||||
|
||||
abort();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void register_abort()
|
||||
{
|
||||
const esp_console_cmd_t cmd = {
|
||||
.command = "abort",
|
||||
.help = "Crash now!",
|
||||
.hint = NULL,
|
||||
.func = &cmd_abort,
|
||||
};
|
||||
cmd_to_json(&cmd);
|
||||
ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) );
|
||||
}
|
||||
|
||||
esp_err_t guided_boot(esp_partition_subtype_t partition_subtype)
|
||||
{
|
||||
if(is_recovery_running){
|
||||
|
||||
Reference in New Issue
Block a user