diff --git a/src/RTC_DS1307.cpp b/src/RTC_DS1307.cpp index 998115d1..dbd7f867 100644 --- a/src/RTC_DS1307.cpp +++ b/src/RTC_DS1307.cpp @@ -131,4 +131,4 @@ uint8_t RTC_DS1307::readnvram(uint8_t address) { /**************************************************************************/ void RTC_DS1307::writenvram(uint8_t address, uint8_t data) { writenvram(address, &data, 1); -} \ No newline at end of file +} diff --git a/src/RTC_Micros.cpp b/src/RTC_Micros.cpp index 1a038ea1..3d049e20 100644 --- a/src/RTC_Micros.cpp +++ b/src/RTC_Micros.cpp @@ -30,4 +30,4 @@ DateTime RTC_Micros::now() { lastMicros += elapsedSeconds * microsPerSecond; lastUnix += elapsedSeconds; return lastUnix; -} \ No newline at end of file +} diff --git a/src/RTC_Millis.cpp b/src/RTC_Millis.cpp index 3c76de98..d2b49bf8 100644 --- a/src/RTC_Millis.cpp +++ b/src/RTC_Millis.cpp @@ -24,4 +24,4 @@ DateTime RTC_Millis::now() { lastMillis += elapsedSeconds * 1000; lastUnix += elapsedSeconds; return lastUnix; -} \ No newline at end of file +} diff --git a/src/RTC_PCF8523.cpp b/src/RTC_PCF8523.cpp index 03108bc5..01a97887 100644 --- a/src/RTC_PCF8523.cpp +++ b/src/RTC_PCF8523.cpp @@ -289,4 +289,4 @@ void RTC_PCF8523::deconfigureAllTimers() { /**************************************************************************/ void RTC_PCF8523::calibrate(Pcf8523OffsetMode mode, int8_t offset) { write_register(PCF8523_OFFSET, ((uint8_t)offset & 0x7F) | mode); -} \ No newline at end of file +} diff --git a/src/RTC_PCF8563.cpp b/src/RTC_PCF8563.cpp index 6496a43d..6707c8ba 100644 --- a/src/RTC_PCF8563.cpp +++ b/src/RTC_PCF8563.cpp @@ -61,7 +61,7 @@ void RTC_PCF8563::adjust(const DateTime &dt) { /**************************************************************************/ DateTime RTC_PCF8563::now() { uint8_t buffer[7]; - buffer[0] = 3; + buffer[0] = PCF8563_VL_SECONDS; // start at location 2, VL_SECONDS i2c_dev->write_then_read(buffer, 1, buffer, 7); return DateTime(bcd2bin(buffer[6]) + 2000U, bcd2bin(buffer[5] & 0x1F),