espressif / esp-adf-libs

54 stars 41 forks source link

hanged order of definitions in i2s_stream to be compatible with c++. #31

Open tank104 opened 2 months ago

tank104 commented 2 months ago

Changed order of definitions in i2s_stream to be compatible with c++. C++ requires define of struct to match the order.

We are getting errors like:

components/audio_stream/include/i2s_stream.h:232:1: error: designator order for field 'i2s_stream_cfg_t::transmit_mode' does not match declaration order in 'i2s_stream_cfg_t'

See issue: https://github.com/espressif/esp-adf/issues/1190