diff options
| author | Jeff Epler <jeff@adafruit.com> | 2020-08-07 10:06:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-07 10:06:39 -0500 |
| commit | d8cc4795be4d327be980f02f3be5f90d625bd286 (patch) | |
| tree | b402e17e4f4909b58b5bf4797f80d1b022f205f1 /supervisor | |
| parent | 16170d44abc55d8a5e65b903fa3e200c0154cbc1 (diff) | |
| parent | 93b373d617ff7a99eb936628d50d954f5db53f43 (diff) | |
Merge pull request #3236 from jepler/firmware-size-gemma-trinket
Firmware size savings
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/shared/safe_mode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/supervisor/shared/safe_mode.c b/supervisor/shared/safe_mode.c index a167ab392..3275cc66f 100644 --- a/supervisor/shared/safe_mode.c +++ b/supervisor/shared/safe_mode.c @@ -151,9 +151,13 @@ void print_safe_mode_message(safe_mode_t reason) { case GC_ALLOC_OUTSIDE_VM: serial_write_compressed(translate("Attempted heap allocation when MicroPython VM not running.")); break; +#ifdef SOFTDEVICE_PRESENT + // defined in ports/nrf/bluetooth/bluetooth_common.mk + // will print "Unknown reason" if somehow encountered on other ports case NORDIC_SOFT_DEVICE_ASSERT: serial_write_compressed(translate("Nordic Soft Device failure assertion.")); break; +#endif case FLASH_WRITE_FAIL: serial_write_compressed(translate("Failed to write internal flash.")); break; |
