We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024ba97 commit b22fbcdCopy full SHA for b22fbcd
supervisor/shared/external_flash/external_flash.c
@@ -324,6 +324,10 @@ static bool allocate_ram_cache(void) {
324
return true;
325
}
326
327
+ if (MP_STATE_MEM(gc_pool_start) == 0) {
328
+ return false;
329
+ }
330
+
331
MP_STATE_VM(flash_ram_cache) = m_malloc_maybe(blocks_per_sector * pages_per_block * sizeof(uint32_t), false);
332
if (MP_STATE_VM(flash_ram_cache) == NULL) {
333
return false;
0 commit comments