Skip to content

Commit bcb4f8c

Browse files
committed
fix compile errors with espidf 6.8.1
1 parent f60bf68 commit bcb4f8c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

extras/ci/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ lib_extra_dirs = .
836836
platform = espressif32 @ 6.8.1
837837
board = esp32-h2-devkitm-1
838838
framework = espidf
839-
build_flags = -Werror -Wall -Wno-deprecated-declarations -Wno-error=incompatible-pointer-types -Wno-unused-function -Wno-error=attributes
839+
build_flags = -Werror -Wall -Wno-deprecated-declarations -Wno-error=incompatible-pointer-types -Wno-unused-function -Wno-error=attributes -Wno-error=missing-field-initializers
840840
board_build.f_cpu = 240000000L
841841
lib_extra_dirs = .
842842

src/pd_esp32/i2s_manager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#if defined(SUPPORT_ESP32_I2S)
33

44
#include "pd_esp32/i2s_manager.h"
5+
#include <string.h>
56

67
static IRAM_ATTR bool i2s_tx_done_callback(i2s_chan_handle_t handle,
78
i2s_event_data_t* event,
@@ -119,7 +120,7 @@ bool I2sManager::i2sMuxGetBit(uint8_t slot) {
119120
}
120121

121122
void IRAM_ATTR I2sManager::handleTxDone(uint8_t* buf) {
122-
_callback_count++;
123+
_callback_count += 1;
123124

124125
if (_is_mux) {
125126
init_mux_buffer(buf);

0 commit comments

Comments
 (0)