@@ -196,7 +196,7 @@ void ota_exec(esp_spp_cb_param_t *param)
196196 ESP_LOGI (OTA_TAG , "GET command: " CMD_FMT_UPD , data_length );
197197
198198 EventBits_t uxBits = xEventGroupGetBits (user_event_group );
199- if (data_length != 0 && !(uxBits & BT_OTA_LOCKED_BIT )
199+ if (data_length != 0 && !(uxBits & BT_OTA_LOCK_BIT )
200200#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
201201 && (uxBits & BLE_GATTS_IDLE_BIT )
202202#endif
@@ -259,7 +259,7 @@ void ota_exec(esp_spp_cb_param_t *param)
259259
260260 xTaskCreatePinnedToCore (ota_write_task , "otaWriteT" , 1920 , NULL , 9 , NULL , 1 );
261261 }
262- } else if (uxBits & BT_OTA_LOCKED_BIT
262+ } else if (( uxBits & BT_OTA_LOCK_BIT )
263263#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
264264 || !(uxBits & BLE_GATTS_IDLE_BIT )
265265#endif
@@ -274,7 +274,7 @@ void ota_exec(esp_spp_cb_param_t *param)
274274 case CMD_IDX_RST : {
275275 ESP_LOGI (OTA_TAG , "GET command: " CMD_FMT_RST );
276276
277- xEventGroupSetBits (user_event_group , BT_OTA_LOCKED_BIT );
277+ xEventGroupSetBits (user_event_group , BT_OTA_LOCK_BIT );
278278
279279 memset (& last_remote_bda , 0x00 , sizeof (esp_bd_addr_t ));
280280 app_setenv ("LAST_REMOTE_BDA" , & last_remote_bda , sizeof (esp_bd_addr_t ));
0 commit comments