Crash when malloc in IRQ, not ISR

This commit is contained in:
SG
2022-11-16 10:47:43 +10:00
parent c832ad6d1f
commit 0d60b456af
2 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ void furi_hal_memory_init() {
}
void* furi_hal_memory_alloc(size_t size) {
if(FURI_IS_ISR()) {
if(FURI_IS_IRQ_MODE()) {
furi_crash("memmgt in ISR");
}