Browse Source

Check for NTP_SUPPORT in sensors

rfm69
Maxim Prokhorov 6 years ago
parent
commit
8d06b8fb91
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() { 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