From 32e05881ea207cad1588bc4dc6bef0675b8198a4 Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 5 Aug 2018 19:10:40 +1200 Subject: [PATCH] debug::notifyFailures now calls alerts::add --- GpsTracker/Debug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GpsTracker/Debug.cpp b/GpsTracker/Debug.cpp index 2c3fffc..078585a 100644 --- a/GpsTracker/Debug.cpp +++ b/GpsTracker/Debug.cpp @@ -271,7 +271,7 @@ namespace debug { void notifyFailures() { PositionEntryMetadata metadata = { - 1, //all battery alert should goes on with this + 1, //all battery alerts should goes on with this 3800, //doesn't matter ALERT_SUSPICIOUS_RTC_TEMPERATURE, 0, @@ -280,11 +280,12 @@ namespace debug { uint8_t alerts = core::notifyFailures(metadata); NOTICE_FORMAT("notifyFailures", "result : %B", alerts); + alerts::add(alerts); } void clearAlerts() { PositionEntryMetadata metadata = { - 100, //all battery alert should goes off with this + 100, //all battery alerts should goes off with this 3800, //doesn't matter 10, 0,