Skip to content

Commit 0e9df28

Browse files
committed
http: don't show error when doing ota update
1 parent 34f752a commit 0e9df28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main/src/user/http.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ void http_daemon(void *pvParameter)
8383
#else
8484
ESP_LOGE(TAG, "error perform https request %s", esp_err_to_name(err));
8585
#endif
86-
gui_show_image(6);
87-
audio_play_file(5);
86+
if (config.event_handler != ota_event_handler) {
87+
gui_show_image(6);
88+
audio_play_file(5);
89+
}
8890
}
8991
esp_http_client_cleanup(client);
9092

0 commit comments

Comments
 (0)