Skip to content

Commit 8838657

Browse files
committed
ota: remove unnecessary i2s operations
1 parent cd0ecbe commit 8838657

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

main/src/user/ota.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "core/os.h"
1919
#include "core/app.h"
20-
#include "chip/i2s.h"
2120
#include "user/vfx.h"
2221
#include "user/bt_av.h"
2322
#include "user/bt_app.h"
@@ -227,7 +226,6 @@ void ota_exec(esp_spp_cb_param_t *param)
227226
portMAX_DELAY
228227
);
229228
#endif
230-
i2s_output_deinit();
231229
}
232230

233231
update_partition = esp_ota_get_next_update_partition(NULL);
@@ -357,7 +355,6 @@ void ota_end(void)
357355

358356
data_length = 0;
359357

360-
i2s_output_init();
361358
#ifndef CONFIG_AUDIO_INPUT_NONE
362359
audio_input_set_mode(ain_prev_mode);
363360
#endif

0 commit comments

Comments
 (0)