File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,6 @@ bool common_hal_alarm_woken_from_sleep(void) {
79
79
}
80
80
81
81
STATIC mp_obj_t _get_wake_alarm (size_t n_alarms , const mp_obj_t * alarms ) {
82
- if (alarm_pin_pinalarm_woke_us_up ()) {
83
- return alarm_pin_pinalarm_get_wakeup_alarm (n_alarms , alarms );
84
- }
85
82
uint8_t cause = _get_wakeup_cause ();
86
83
switch (cause ) {
87
84
case STM_WAKEUP_RTC : {
Original file line number Diff line number Diff line change @@ -169,10 +169,9 @@ safe_mode_t port_init(void) {
169
169
HAL_Init (); // Turns on SysTick
170
170
__HAL_RCC_SYSCFG_CLK_ENABLE ();
171
171
172
- #if (CPY_STM32F4 )
173
172
__HAL_RCC_PWR_CLK_ENABLE ();
174
- #endif
175
173
174
+ HAL_PWR_EnableBkUpAccess ();
176
175
__HAL_RCC_BACKUPRESET_FORCE ();
177
176
__HAL_RCC_BACKUPRESET_RELEASE ();
178
177
You can’t perform that action at this time.
0 commit comments