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 1805bca commit 2d54830Copy full SHA for 2d54830
ports/atmel-samd/supervisor/port.c
@@ -81,11 +81,11 @@ safe_mode_t port_init(void) {
81
#ifdef CIRCUITPY_CANARY_WORD
82
#ifdef SAMD21
83
bool power_on_or_external_reset = hri_pm_get_RCAUSE_POR_bit(PM) || hri_pm_get_RCAUSE_EXT_bit(PM);
84
- bool system_reset = hri_pm_get_RCAUSE_EXT_bit(PM);
+ bool system_reset = hri_pm_get_RCAUSE_SYST_bit(PM);
85
#endif
86
#ifdef SAMD51
87
bool power_on_or_external_reset = hri_rstc_get_RCAUSE_POR_bit(RSTC) || hri_rstc_get_RCAUSE_EXT_bit(RSTC);
88
- bool system_reset = hri_rstc_get_RCAUSE_EXT_bit(RSTC);
+ bool system_reset = hri_rstc_get_RCAUSE_SYST_bit(RSTC);
89
90
if (power_on_or_external_reset) {
91
_ezero = CIRCUITPY_CANARY_WORD;
0 commit comments