问题描述
在使用ESP32 C3调试蓝牙通信功能时,串口信息反馈下面错误信息,蓝牙连接失败。
CORRUPT HEAP: Bad head at 0x3ffdfef4. Expected 0xabba1234 got 0x3ffc6ebc
assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
查找问题
发现有一个函数,尾部缺少’return
bool function()
{
connected = true;
}
解决方法
修改函数,加入return
bool function()
{
connected = true;
return true;
}