File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2525
2626#define TAG "http_app_ota"
2727
28- static uint8_t first_time = 1 ;
28+ static uint8_t ota_first_time = 1 ;
2929
3030esp_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}
You can’t perform that action at this time.
0 commit comments