Skip to content

Commit

Permalink
Update RTC_PCF8523.cpp
Browse files Browse the repository at this point in the history
Updated '@return'
  • Loading branch information
Gambalunga authored Jan 16, 2024
1 parent 0144018 commit 3dc423b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/RTC_PCF8523.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ void RTC_PCF8523::calibrate(Pcf8523OffsetMode mode, int8_t offset) {
/**************************************************************************/
/*!
@brief read the offset register
@return OffsetReg the raw value of the register
*/
/**************************************************************************/

Expand All @@ -303,13 +304,14 @@ uint8_t RTC_PCF8523::readOffsetReg() {

/**************************************************************************/
/*!
@brief read the offset register and return OffsetMode
@brief read the offset register
@return OffsetMode
*/
/**************************************************************************/

String RTC_PCF8523::getOffsetMode() {
String OffsetMode;
if bitRead (readOffsetReg(), 7) {
if (bitRead (readOffsetReg(), 7)) {
OffsetMode = String("PCF8523_OneMinute");
} else {
OffsetMode = String("PCF8523_TwoHours ");
Expand All @@ -319,9 +321,10 @@ String RTC_PCF8523::getOffsetMode() {

/**************************************************************************/
/*!
@brief read the offset register and return offset
The offset parameter is held in bits 0 to 6 as a signed 7bit integer
@brief read the offset register
@details The offset parameter is held in bits 0 to 6 as a signed 7bit integer
bit 6 needs to be copied to bit 7 to convert to a signed 8bit integer
@return offset
*/
/**************************************************************************/

Expand Down

0 comments on commit 3dc423b

Please sign in to comment.