Skip to content

Commit eb071cd

Browse files
Include hardware/timer.h (#90)
If you include sleep.h first you get a compile error as hardware_alarm_callback_t is not defined. Fix this by including the appropriate header. Fixes #89
1 parent 82409a9 commit eb071cd

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/pico_sleep/include/pico

1 file changed

+1
-1
lines changed

src/rp2_common/pico_sleep/include/pico/sleep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "pico.h"
1111
#include "hardware/rosc.h"
12-
12+
#include "hardware/timer.h"
1313
#include "pico/aon_timer.h"
1414

1515
#ifdef __cplusplus

0 commit comments

Comments
 (0)