Browse Source

Renamed ALERT_RTC_TEMPERATURE_FAILURE to ALERT_SUSPICIOUS_RTC_TEMPERATURE

tags/v1.2.0
Bertrand Lemasle 6 years ago
parent
commit
dea753de7e
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      GpsTracker/Alerts.cpp
  2. +1
    -1
      GpsTracker/Config.h

+ 2
- 2
GpsTracker/Alerts.cpp View File

@@ -11,7 +11,7 @@ namespace alerts {
config_t* config = &config::main::value;
uint8_t result = 0;

if (metadata.temperature == ALERT_RTC_TEMPERATURE_FAILURE && !bitRead(_alerts, ALERT_RTC_FAILURE)) {
if (metadata.temperature == ALERT_SUSPICIOUS_RTC_TEMPERATURE && !bitRead(_alerts, ALERT_RTC_FAILURE)) {
bitSet(result, ALERT_RTC_FAILURE);
}

@@ -30,7 +30,7 @@ namespace alerts {
config_t* config = &config::main::value;
uint8_t clearMask = 0;

if (bitRead(_alerts, ALERT_RTC_FAILURE) && metadata.temperature != ALERT_RTC_TEMPERATURE_FAILURE) {
if (bitRead(_alerts, ALERT_RTC_FAILURE) && metadata.temperature != ALERT_SUSPICIOUS_RTC_TEMPERATURE) {
bitSet(clearMask, ALERT_RTC_FAILURE);
}



+ 1
- 1
GpsTracker/Config.h View File

@@ -47,7 +47,7 @@
#define NETWORK_DEFAULT_NO_NETWORK_QUALITY_THRESHOLD 8
#define NETWORK_DEFAULT_NO_NETWORK_TRIES 5

#define ALERT_RTC_TEMPERATURE_FAILURE 0
#define ALERT_SUSPICIOUS_RTC_TEMPERATURE 0

#pragma endregion



Loading…
Cancel
Save