Fixed time format conversion to be static

This commit is contained in:
Emanuele Trabattoni
2025-07-16 20:41:57 +02:00
parent 3923aa3c05
commit 30ed0d283a
2 changed files with 7 additions and 6 deletions

View File

@@ -133,10 +133,10 @@ 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);
static const std::string datetime2str(const datetime_t &datetime);
static const PCF85063::datetime_t fromEpoch(const time_t currentTime);
private:
const uint8_t decToBcd(const int val);