Skip to content

Commit 1ad3daf

Browse files
DavePutzdhalbert
authored andcommitted
Fix declaration of print_wakeup_cause
1 parent 803c18c commit 1ad3daf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@
4848
#include "nrf_power.h"
4949
#include "nrfx.h"
5050
#include "nrfx_gpiote.h"
51-
#ifdef NRF_DEBUG_PRINT
52-
static void print_wakeup_cause(nrf_sleep_source_t cause);
53-
#endif
5451

5552
// Singleton instance of SleepMemory.
5653
const alarm_sleep_memory_obj_t alarm_sleep_memory_obj = {
@@ -99,7 +96,7 @@ static const char *cause_str[] = {
9996
"VBUS",
10097
"RESETPIN",
10198
};
102-
void print_wakeup_cause(nrf_sleep_source_t cause) {
99+
static void print_wakeup_cause(nrf_sleep_source_t cause) {
103100
if (cause >= 0 && cause < NRF_SLEEP_WAKEUP_ZZZ) {
104101
mp_printf(&mp_plat_print, "wakeup cause = NRF_SLEEP_WAKEUP_%s\r\n",
105102
cause_str[(int)cause]);

0 commit comments

Comments
 (0)