Debug changed

This commit is contained in:
Dmitry Borisenko
2020-09-17 17:27:44 +03:00
parent fc91a60bab
commit 0a212e0933
30 changed files with 157 additions and 148 deletions

View File

@@ -10,7 +10,7 @@
#endif
class Clock {
const char* MODULE = "Clock";
private:
Time_t _time_local;
@@ -71,7 +71,7 @@ class Clock {
void startSync() {
if (!_configured) {
//pm.info("sync to: " + _ntp + " timezone: " + String(_timezone));
//SerialPrint("I","module","sync to: " + _ntp + " timezone: " + String(_timezone));
setupSntp();
_configured = true;
// лучше не ждать, проверим в следующий раз
@@ -79,9 +79,9 @@ class Clock {
}
_hasSynced = hasTimeSynced();
if (_hasSynced) {
//pm.info("synced " + getDateDotFormated() + " " + getTime());
//SerialPrint("I","module","synced " + getDateDotFormated() + " " + getTime());
} else {
//pm.error("failed to obtain");
//SerialPrint("[E]","module","failed to obtain");
}
}