mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-25 05:44:45 -07:00
Crash when malloc in IRQ, not ISR
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user