Fixed RTC and Ethernet drivers, with NTP
This commit is contained in:
@@ -130,10 +130,12 @@ namespace drivers
|
||||
const bool readAlarm(datetime_t &time);
|
||||
const bool getAlarmFlag(uint8_t &flags);
|
||||
|
||||
const std::string datetime2str(datetime_t &datetime);
|
||||
const std::string getTimeStr();
|
||||
|
||||
static PCF85063::datetime_t fromEpoch(time_t currentTime);
|
||||
|
||||
private:
|
||||
const std::string datetime2str(datetime_t &datetime);
|
||||
const uint8_t decToBcd(const int val);
|
||||
const int bcdToDec(const uint8_t val);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user