User Tools

Site Tools


en-us_commands:reference:irtctimevalid

This is an old revision of the document!


IrtcTimeValid()

IrtcTimeValid() checks whether the RTC time is trustworthy.

IrtcTimeValid command operation flow

bool IrtcTimeValid(bool& valid)

Commands

Command Arguments Return Value Operation
IrtcTimeValid(valid) bool& valid bool Checks whether the RTC time is trustworthy.

Example

bool valid;
if (IrtcTimeValid(valid) && !valid) {
  // Check the power supply or battery and set the time again.
}

Precautions

Run each device's corresponding Begin command first. Check I²C addresses and pin sharing; if the bool return value is false, inspect wiring and power.

← Built-in Command List

en-us_commands/reference/irtctimevalid.1788785568.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki