diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-09-08 17:06:09 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-09-08 17:06:09 -0700 |
| commit | 99f5011d74e3d059a59f7c382974d57f03a0b6e9 (patch) | |
| tree | b8a7188e788ea41e228fa9e38feddccfa68d526a /supervisor/shared | |
| parent | 96cf60fbbdc26d5ed3274a43ebbaab7feca797e1 (diff) | |
Fix heap without PSRAM. Never set heap_size.
Diffstat (limited to 'supervisor/shared')
| -rw-r--r-- | supervisor/shared/safe_mode.c | 4 | ||||
| -rw-r--r-- | supervisor/shared/safe_mode.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/supervisor/shared/safe_mode.c b/supervisor/shared/safe_mode.c index 3275cc66f..29a0a6a4f 100644 --- a/supervisor/shared/safe_mode.c +++ b/supervisor/shared/safe_mode.c @@ -133,6 +133,10 @@ void print_safe_mode_message(safe_mode_t reason) { serial_write_compressed(translate("The CircuitPython heap was corrupted because the stack was too small.\nPlease increase the stack size if you know how, or if not:")); serial_write_compressed(FILE_AN_ISSUE); return; + case NO_HEAP: + serial_write_compressed(translate("CircuitPython was unable to allocate the heap.\n")); + serial_write_compressed(FILE_AN_ISSUE); + return; default: break; } diff --git a/supervisor/shared/safe_mode.h b/supervisor/shared/safe_mode.h index c160739ae..7d3cd63b5 100644 --- a/supervisor/shared/safe_mode.h +++ b/supervisor/shared/safe_mode.h @@ -42,6 +42,7 @@ typedef enum { FLASH_WRITE_FAIL, MEM_MANAGE, WATCHDOG_RESET, + NO_HEAP, } safe_mode_t; safe_mode_t wait_for_safe_mode_reset(void); |
