Closed stintel closed 1 year ago
ESP-ADF has no plan to update the branch of esp-sr in the near further, but this modification is useful and can be merged if you can update the commit message, make it no mention of the version of esp-sr, thanks.
make it no mention of the version of esp-sr
Not exactly sure what you mean. Can you elaborate?
Merged on 9f2dd79d0636d5637afb353b46db13048025e3dc
Since ESP-SR commit 62b626f3f642 ("Update multinet API to add/modify/print/check new commmand string"), 400 multinet commands are supported on ESP32-S3. The max value for uint8_t is 255, which is lower than 400. This causes the following warning:
/willow/deps/esp-adf/components/audio_recorder/recorder_sr.c: In function 'recorder_sr_reset_speech_cmd': /willow/deps/esp-adf/components/audio_recorder/recorder_sr.c:613:22: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (++cmd_id > ESP_MN_MAX_PHRASE_NUM) { ^
Change cmd_id to uint16_t to fix this.