Skip to content

Commit d8badb5

Browse files
authored
Merge pull request #6512 from dhalbert/7.3.x-6486-backport-nrf-wakeup
7.3.x #6486 backport nrf wakeup
2 parents 515ea02 + 1ad3daf commit d8badb5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ports/nrf/boards/clue_nrf52840_express/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,5 @@ void reset_board(void) {
102102
}
103103

104104
void board_deinit(void) {
105+
common_hal_displayio_release_displays();
105106
}

ports/nrf/common-hal/alarm/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static const char *cause_str[] = {
9696
"VBUS",
9797
"RESETPIN",
9898
};
99-
void print_wakeup_cause(nrf_sleep_source_t cause) {
99+
static void print_wakeup_cause(nrf_sleep_source_t cause) {
100100
if (cause >= 0 && cause < NRF_SLEEP_WAKEUP_ZZZ) {
101101
mp_printf(&mp_plat_print, "wakeup cause = NRF_SLEEP_WAKEUP_%s\r\n",
102102
cause_str[(int)cause]);
@@ -108,7 +108,7 @@ bool common_hal_alarm_woken_from_sleep(void) {
108108
nrf_sleep_source_t cause = _get_wakeup_cause();
109109
#ifdef NRF_DEBUG_PRINT
110110
if (cause != NRF_SLEEP_WAKEUP_UNDEFINED) {
111-
// print_wakeup_cause(cause);
111+
print_wakeup_cause(cause);
112112
}
113113
#endif
114114
return cause == NRF_SLEEP_WAKEUP_GPIO || cause == NRF_SLEEP_WAKEUP_TIMER

0 commit comments

Comments
 (0)