Skip to content

Commit

Permalink
Merge pull request #6486 from DavePutz/issue_6478
Browse files Browse the repository at this point in the history
Fix for Issue #6478
  • Loading branch information
tannewt authored Jun 15, 2022
2 parents d996495 + 8668dee commit 894cea2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ports/nrf/boards/clue_nrf52840_express/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,5 @@ void reset_board(void) {
}

void board_deinit(void) {
common_hal_displayio_release_displays();
}
4 changes: 2 additions & 2 deletions ports/nrf/common-hal/alarm/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static const char *cause_str[] = {
"VBUS",
"RESETPIN",
};
void print_wakeup_cause(nrf_sleep_source_t cause) {
static void print_wakeup_cause(nrf_sleep_source_t cause) {
if (cause >= 0 && cause < NRF_SLEEP_WAKEUP_ZZZ) {
mp_printf(&mp_plat_print, "wakeup cause = NRF_SLEEP_WAKEUP_%s\r\n",
cause_str[(int)cause]);
Expand All @@ -108,7 +108,7 @@ bool common_hal_alarm_woken_from_sleep(void) {
nrf_sleep_source_t cause = _get_wakeup_cause();
#ifdef NRF_DEBUG_PRINT
if (cause != NRF_SLEEP_WAKEUP_UNDEFINED) {
// print_wakeup_cause(cause);
print_wakeup_cause(cause);
}
#endif
return cause == NRF_SLEEP_WAKEUP_GPIO || cause == NRF_SLEEP_WAKEUP_TIMER
Expand Down

0 comments on commit 894cea2

Please sign in to comment.