Crash when malloc in ISR

This commit is contained in:
SG
2022-11-15 23:27:30 +10:00
parent d381ce55df
commit 853d840ec9
+4
View File
@@ -340,6 +340,10 @@ void* pvPortMalloc(size_t xWantedSize) {
void* pvReturn = NULL;
size_t to_wipe = xWantedSize;
if(FURI_IS_ISR()) {
furi_crash("malloc in ISR");
}
#ifdef HEAP_PRINT_DEBUG
BlockLink_t* print_heap_block = NULL;
#endif