Skip to content

Commit 3a6e4ad

Browse files
committed
Cleaned up a few unnecessary lines from the merge.
1 parent 3115ab5 commit 3a6e4ad

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/RTCZero.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ uint8_t RTCZero::getMinutes()
128128

129129
uint8_t RTCZero::getHours()
130130
{
131-
uint8_t hours = RTC->MODE2.CLOCK.bit.HOUR;
132-
133-
return hours;
131+
return RTC->MODE2.CLOCK.bit.HOUR;
134132
}
135133

136134
uint8_t RTCZero::getDay()
@@ -160,9 +158,7 @@ uint8_t RTCZero::getAlarmMinutes()
160158

161159
uint8_t RTCZero::getAlarmHours()
162160
{
163-
uint8_t hours = RTC->MODE2.Mode2Alarm[0].ALARM.bit.HOUR;
164-
165-
return hours;
161+
return RTC->MODE2.Mode2Alarm[0].ALARM.bit.HOUR;
166162
}
167163

168164
uint8_t RTCZero::getAlarmDay()
@@ -419,4 +415,4 @@ void RTCZero::RTCresetRemove()
419415
RTC->MODE2.CTRL.reg &= ~RTC_MODE2_CTRL_SWRST; // software reset remove
420416
while (RTCisSyncing())
421417
;
422-
}
418+
}

src/RTCZero.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#ifndef RTC_ZERO_H
2121
#define RTC_ZERO_H
2222

23-
#define H24 1
24-
#define H12 0
25-
2623
#include "Arduino.h"
2724

2825
typedef void(*voidFuncPtr)(void);

0 commit comments

Comments
 (0)