Browse Source

debug::notifyFailures now calls alerts::add

tags/v1.2.0
Bertrand Lemasle 6 years ago
parent
commit
32e05881ea
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      GpsTracker/Debug.cpp

+ 3
- 2
GpsTracker/Debug.cpp View File

@@ -271,7 +271,7 @@ namespace debug {


void notifyFailures() { void notifyFailures() {
PositionEntryMetadata metadata = { PositionEntryMetadata metadata = {
1, //all battery alert should goes on with this
1, //all battery alerts should goes on with this
3800, //doesn't matter 3800, //doesn't matter
ALERT_SUSPICIOUS_RTC_TEMPERATURE, ALERT_SUSPICIOUS_RTC_TEMPERATURE,
0, 0,
@@ -280,11 +280,12 @@ namespace debug {


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


void clearAlerts() { void clearAlerts() {
PositionEntryMetadata metadata = { PositionEntryMetadata metadata = {
100, //all battery alert should goes off with this
100, //all battery alerts should goes off with this
3800, //doesn't matter 3800, //doesn't matter
10, 10,
0, 0,


Loading…
Cancel
Save