Factory Test and Microphone example not compiling M5 Stick C Plus (latest version)
-
Line 438 in M5StickCPlus\examples\FactoryTest.ino and line 55 M5StickCPlus\examples\Micophone.ino has a compile error on the line marked ----> below
i2s_pin_config_t pin_config;
#if (ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 3, 0))
--------> pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
#endif
pin_config.bck_io_num = I2S_PIN_NO_CHANGE;The error is:
C:\Projects\ArduinoSketchbooks\GPS-Mic-Test\GPS-Mic-Test.ino: In function 'bool InitI2SMicroPhone()':
GPS-Mic-Test:438:16: error: 'struct i2s_pin_config_t' has no member named 'mck_io_num'; did you mean 'bck_io_num'?
pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
^~~~~~~~~~
bck_io_num...
exit status 1
'struct i2s_pin_config_t' has no member named 'mck_io_num'; did you mean 'bck_io_num'? -
@bazman Fix is to delete the line! Both the microphone example and the factory test project then work.