Skip to content

Commit d4be188

Browse files
committed
ota: remove duplicate reinit operations
1 parent d0a1d12 commit d4be188

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

main/src/user/ota.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -178,29 +178,6 @@ static void ota_write_task(void *pvParameter)
178178

179179
data_recv = false;
180180

181-
if (update_handle) {
182-
esp_ota_end(update_handle);
183-
update_handle = 0;
184-
185-
data_length = 0;
186-
187-
i2s_output_init();
188-
audio_player_set_mode(1);
189-
#ifndef CONFIG_AUDIO_INPUT_NONE
190-
audio_input_set_mode(ain_prev_mode);
191-
#endif
192-
#ifdef CONFIG_ENABLE_VFX
193-
vfx->mode = vfx_prev_mode;
194-
vfx_set_conf(vfx);
195-
#endif
196-
197-
#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
198-
esp_ble_gap_start_advertising(&adv_params);
199-
#endif
200-
201-
xEventGroupSetBits(user_event_group, KEY_SCAN_RUN_BIT);
202-
}
203-
204181
vTaskDelete(NULL);
205182
}
206183

0 commit comments

Comments
 (0)