@@ -196,7 +196,7 @@ void ota_exec(esp_spp_cb_param_t *param)
196
196
ESP_LOGI (OTA_TAG , "GET command: " CMD_FMT_UPD , data_length );
197
197
198
198
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 )
200
200
#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
201
201
&& (uxBits & BLE_GATTS_IDLE_BIT )
202
202
#endif
@@ -259,7 +259,7 @@ void ota_exec(esp_spp_cb_param_t *param)
259
259
260
260
xTaskCreatePinnedToCore (ota_write_task , "otaWriteT" , 1920 , NULL , 9 , NULL , 1 );
261
261
}
262
- } else if (uxBits & BT_OTA_LOCKED_BIT
262
+ } else if (( uxBits & BT_OTA_LOCK_BIT )
263
263
#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
264
264
|| !(uxBits & BLE_GATTS_IDLE_BIT )
265
265
#endif
@@ -274,7 +274,7 @@ void ota_exec(esp_spp_cb_param_t *param)
274
274
case CMD_IDX_RST : {
275
275
ESP_LOGI (OTA_TAG , "GET command: " CMD_FMT_RST );
276
276
277
- xEventGroupSetBits (user_event_group , BT_OTA_LOCKED_BIT );
277
+ xEventGroupSetBits (user_event_group , BT_OTA_LOCK_BIT );
278
278
279
279
memset (& last_remote_bda , 0x00 , sizeof (esp_bd_addr_t ));
280
280
app_setenv ("LAST_REMOTE_BDA" , & last_remote_bda , sizeof (esp_bd_addr_t ));
0 commit comments