瀏覽代碼

Additional debug info for getTime and notifyFailures

tags/v1.2.0
Bertrand Lemasle 6 年之前
父節點
當前提交
9882a9dc0b
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      GpsTracker/Debug.cpp

+ 3
- 2
GpsTracker/Debug.cpp 查看文件

@@ -192,7 +192,7 @@ namespace debug {
tmElements_t time; tmElements_t time;
rtc::getTime(time); rtc::getTime(time);


NOTICE_FORMAT("getAndDisplayRtcTime", "%d/%d/%d %d:%d:%d", tmYearToCalendar(time.Year), time.Month, time.Day, time.Hour, time.Minute, time.Second);
NOTICE_FORMAT("getAndDisplayRtcTime", "%d/%d/%d %d:%d:%d %t", tmYearToCalendar(time.Year), time.Month, time.Day, time.Hour, time.Minute, time.Second, rtc::isAccurate());
} }


void setRtcTime() { void setRtcTime() {
@@ -278,7 +278,8 @@ namespace debug {
SIM808_GPS_STATUS::OFF SIM808_GPS_STATUS::OFF
}; };


core::notifyFailures(metadata);
uint8_t alerts = core::notifyFailures(metadata);
NOTICE_FORMAT("notifyFailures", "result : %B", alerts);
} }


void clearAlerts() { void clearAlerts() {


Loading…
取消
儲存