Browse Source

Merge pull request #809 from mcspr/sensors-ntp

Check for NTP_SUPPORT in sensors
rfm69
Xose Pérez 6 years ago
committed by GitHub
parent
commit
6950a7a96f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      code/espurna/sensor.ino

+ 5
- 3
code/espurna/sensor.ino View File

@ -286,9 +286,11 @@ void _sensorPost() {
}
void _sensorReset() {
if (ntpSynced()) {
_sensor_energy_reset_ts = String(" (since ") + ntpDateTime() + String(")");
}
#if NTP_SUPPORT
if (ntpSynced()) {
_sensor_energy_reset_ts = String(" (since ") + ntpDateTime() + String(")");
}
#endif
}
// -----------------------------------------------------------------------------


Loading…
Cancel
Save