Skip to content

Commit

Permalink
Ensure all files are properly terminated
Browse files Browse the repository at this point in the history
Since we use Unix text format, all lines, including the last one, should
be terminated by ASCII LF.
  • Loading branch information
edgar-bonet committed Oct 29, 2021
1 parent 3ae553e commit 6ff0aac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/RTC_DS1307.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion src/RTC_Micros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ DateTime RTC_Micros::now() {
lastMicros += elapsedSeconds * microsPerSecond;
lastUnix += elapsedSeconds;
return lastUnix;
}
}
2 changes: 1 addition & 1 deletion src/RTC_Millis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ DateTime RTC_Millis::now() {
lastMillis += elapsedSeconds * 1000;
lastUnix += elapsedSeconds;
return lastUnix;
}
}
2 changes: 1 addition & 1 deletion src/RTC_PCF8523.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 6ff0aac

Please sign in to comment.