diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-10-18 20:37:11 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-10-18 20:37:11 +0300 |
commit | a5726e9fec70ea60322702d112dff5a0bde02538 (patch) | |
tree | 7282d7b20ea6411b8d8a9148292e5da04855880f /src/Hardware/SoftwareReset.h | |
parent | 3341fd09923beb127e9088910808874c3fb24669 (diff) |
Added out-of-memory handler for new CoreNG
Diffstat (limited to 'src/Hardware/SoftwareReset.h')
-rw-r--r-- | src/Hardware/SoftwareReset.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Hardware/SoftwareReset.h b/src/Hardware/SoftwareReset.h index 3505ce3b..3e24d5a4 100644 --- a/src/Hardware/SoftwareReset.h +++ b/src/Hardware/SoftwareReset.h @@ -33,8 +33,9 @@ enum class SoftwareResetReason : uint16_t heaterWatchdog = 10u << 5, // the Heat task didn't kick the watchdog often enough memFault = 11u << 5, // the MPU raised a fault terminateCalled = 12u << 5, // std::terminate was called - pureVirtual = 13u << 5, - deletedVirtual = 14u << 5, + pureOrDeletedVirtual = 13u << 5, + outOfMemory = 14u << 5, + //unused = 15u << 5, mainReasonMask = 0x0F << 5, // mask to pick out the main reason in a uint16_t |