Moar memory management crashes.

This commit is contained in:
SG
2022-11-15 23:58:36 +10:00
parent 2198a38a22
commit c832ad6d1f
2 changed files with 9 additions and 1 deletions

View File

@@ -81,6 +81,10 @@ void furi_hal_memory_init() {
}
void* furi_hal_memory_alloc(size_t size) {
if(FURI_IS_ISR()) {
furi_crash("memmgt in ISR");
}
if(furi_hal_memory == NULL) {
return NULL;
}