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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
3 deletions
-
code/espurna/sensor.ino
|
@ -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
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
// -----------------------------------------------------------------------------
|
|
|