pretty things up a bit

This commit is contained in:
philippe44
2023-03-29 23:41:35 -07:00
parent cad286c8d7
commit 5ecb371fb0
3 changed files with 13 additions and 8 deletions

View File

@@ -65,7 +65,8 @@ static void squeezelite_thread(void *arg){
ESP_LOGI(TAG ,"Calling squeezelite");
int ret = squeezelite_main(thread_parms.argc, thread_parms.argv);
messaging_post_message(MESSAGING_WARNING, MESSAGING_CLASS_SYSTEM, "squeezelite exited with error code %d", ret);
messaging_post_message(ret > 1 ? MESSAGING_ERROR : MESSAGING_WARNING,
MESSAGING_CLASS_SYSTEM, "squeezelite exited with error code %d", ret);
if (ret == 1) {
int wait = 60;