mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
Merge branch 'bugfix/mn2' into 'master'
Bugfix/mn2 See merge request speech-recognition-framework/esp-sr!65
This commit is contained in:
commit
e4e8542695
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.
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user