Skip to content

Commit 894cea2

Browse files
authored
Merge pull request #6486 from DavePutz/issue_6478
Fix for Issue #6478
2 parents d996495 + 8668dee commit 894cea2

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
@@ -103,4 +103,5 @@ void reset_board(void) {
103103
}
104104

105105
void board_deinit(void) {
106+
common_hal_displayio_release_displays();
106107
}

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)