Skip to content

Commit 42979ff

Browse files
committed
ota: code clean up
1 parent 9913f15 commit 42979ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/src/user/ota.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void ota_exec(esp_spp_cb_param_t *param)
198198
EventBits_t uxBits = xEventGroupGetBits(user_event_group);
199199
if (data_length != 0 && !(uxBits & BT_OTA_LOCK_BIT)
200200
#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
201-
&& (uxBits & BLE_GATTS_IDLE_BIT)
201+
&& (uxBits & BLE_GATTS_IDLE_BIT)
202202
#endif
203203
) {
204204
if (!update_handle) {
@@ -261,7 +261,7 @@ void ota_exec(esp_spp_cb_param_t *param)
261261
}
262262
} else if ((uxBits & BT_OTA_LOCK_BIT)
263263
#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
264-
|| !(uxBits & BLE_GATTS_IDLE_BIT)
264+
|| !(uxBits & BLE_GATTS_IDLE_BIT)
265265
#endif
266266
) {
267267
ota_send_response(RSP_IDX_FAIL);

0 commit comments

Comments
 (0)