Skip to content

Commit 6c8d5ea

Browse files
committed
Renamed the callback function pointer to avoid conflicts.
1 parent 652f85b commit 6c8d5ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/RTCZero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void RTCZero::disableAlarm()
108108
;
109109
}
110110

111-
void RTCZero::attachInterrupt(voidFuncPtr callback)
111+
void RTCZero::attachInterrupt(RTC_voidFuncPtr callback)
112112
{
113113
RTC_callBack = callback;
114114
}

src/RTCZero.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "Arduino.h"
2727

28-
typedef void(*voidFuncPtr)(void);
28+
typedef void(*RTC_voidFuncPtr)(void);
2929

3030
class RTCZero {
3131
public:
@@ -53,7 +53,7 @@ class RTCZero {
5353
void enableAlarm(Alarm_Match match);
5454
void disableAlarm();
5555

56-
void attachInterrupt(voidFuncPtr callback);
56+
void attachInterrupt(RTC_voidFuncPtr callback);
5757
void detachInterrupt();
5858

5959
/* Get Functions */

0 commit comments

Comments
 (0)