File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,7 @@ uint8_t RTCZero::getMinutes()
128
128
129
129
uint8_t RTCZero::getHours ()
130
130
{
131
- uint8_t hours = RTC->MODE2 .CLOCK .bit .HOUR ;
132
-
133
- return hours;
131
+ return RTC->MODE2 .CLOCK .bit .HOUR ;
134
132
}
135
133
136
134
uint8_t RTCZero::getDay ()
@@ -160,9 +158,7 @@ uint8_t RTCZero::getAlarmMinutes()
160
158
161
159
uint8_t RTCZero::getAlarmHours ()
162
160
{
163
- uint8_t hours = RTC->MODE2 .Mode2Alarm [0 ].ALARM .bit .HOUR ;
164
-
165
- return hours;
161
+ return RTC->MODE2 .Mode2Alarm [0 ].ALARM .bit .HOUR ;
166
162
}
167
163
168
164
uint8_t RTCZero::getAlarmDay ()
@@ -419,4 +415,4 @@ void RTCZero::RTCresetRemove()
419
415
RTC->MODE2 .CTRL .reg &= ~RTC_MODE2_CTRL_SWRST; // software reset remove
420
416
while (RTCisSyncing ())
421
417
;
422
- }
418
+ }
Original file line number Diff line number Diff line change 20
20
#ifndef RTC_ZERO_H
21
21
#define RTC_ZERO_H
22
22
23
- #define H24 1
24
- #define H12 0
25
-
26
23
#include " Arduino.h"
27
24
28
25
typedef void (*voidFuncPtr)(void );
You can’t perform that action at this time.
0 commit comments