esp-adf
esp-adf copied to clipboard
Fix tone partition index and update the (AUD-6237)
Description
Change the index check to include the case where index == total_num. Update find_num array size to DEFAULT_TONE_NUM for longer tone index.
Related
#1391
Testing
Tested on ESP32-S3-Korvo-2 development board using pipline_flash_tone example. When index == total_num, the error was handled properly.
Checklist
Before submitting a Pull Request, please ensure the following:
- [x] 🚨 This PR does not introduce breaking changes.
- [ ] All CI checks (GH Actions) pass.
- [ ] Documentation is updated as needed.
- [ ] Tests are updated or added as necessary.
- [ ] Code is well-commented, especially in complex areas.
- [x] Git history is clean — commits are squashed to the minimum necessary.