Merge branch 'bugfix/mn2' into 'master'

Bugfix/mn2

See merge request speech-recognition-framework/esp-sr!65
This commit is contained in:
Sun Xiang Yu 2023-10-24 14:49:31 +08:00
commit e4e8542695
8 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -277,7 +277,11 @@ void esp_mn_active_commands_print(void)
void *_esp_mn_calloc_(int n, int size)
{
#ifdef ESP_PLATFORM
return heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM);
void *data = heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM);
if (data == NULL) {
data = calloc(n, size);
}
return data;
#else
return calloc(n, size);
#endif