8000 nrf5/modules: Updating rtc module with non-const machine object list … · pcurry/circuitpython@f50a56d · GitHub
[go: up one dir, main page]

Skip to content

Commit f50a56d

Browse files
committed
nrf5/modules: Updating rtc module with non-const machine object list in order to allow setting callback function in constructor.
1 parent 87e1616 commit f50a56d

File tree

1 file changed

+1
-1
lines changed
  • nrf5/modules/machine

1 file changed

+1
-1
lines changed

nrf5/modules/machine/rtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct _machine_rtc_obj_t {
4444
RTC_HandleTypeDef RTCHandle0 = {.config.p_instance = NULL, .id = 0};
4545
RTC_HandleTypeDef RTCHandle1 = {.config.p_instance = NULL, .id = 1};
4646

47-
STATIC const machine_rtc_obj_t machine_rtc_obj[] = {
47+
STATIC machine_rtc_obj_t machine_rtc_obj[] = {
4848
{{&machine_rtc_type}, &RTCHandle0},
4949
{{&machine_rtc_type}, &RTCHandle1},
5050
};

0 commit comments

Comments
 (0)
0