Skip to content

Commit 1b51d05

Browse files
committed
http_app_ota: minor update
1 parent 24c49ee commit 1b51d05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main/src/user/http_app_ota.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#define TAG "http_app_ota"
2727

28-
static uint8_t first_time = 1;
28+
static uint8_t ota_first_time = 1;
2929

3030
esp_err_t http_app_ota_event_handler(esp_http_client_event_t *evt)
3131
{
@@ -44,8 +44,8 @@ esp_err_t http_app_ota_event_handler(esp_http_client_event_t *evt)
4444
break;
4545
case HTTP_EVENT_ON_DATA: {
4646
if (evt->data_len) {
47-
if (first_time) {
48-
first_time = 0;
47+
if (ota_first_time) {
48+
ota_first_time = 0;
4949

5050
led_set_mode(3);
5151
gui_show_image(8);
@@ -127,6 +127,6 @@ void http_app_check_for_updates(void)
127127
if ((uxBits & HTTP_APP_OTA_READY_BIT) == 0) {
128128
xEventGroupClearBits(user_event_group, HTTP_APP_OTA_RUN_BIT);
129129
}
130-
first_time = 1;
130+
ota_first_time = 1;
131131
#endif
132132
}

0 commit comments

Comments
 (0)