mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-05 03:05:09 +00:00
Fixed NPE
This commit is contained in:
@@ -577,6 +577,11 @@ bool AmsDataStorage::isHappy() {
|
||||
}
|
||||
|
||||
bool AmsDataStorage::isDayHappy() {
|
||||
if(tz == NULL) {
|
||||
if(debugger->isActive(RemoteDebug::VERBOSE)) debugger->printf_P(PSTR("(AmsDataStorage) Timezone is missing\n"));
|
||||
return false;
|
||||
}
|
||||
|
||||
time_t now = time(nullptr);
|
||||
if(now < FirmwareVersion::BuildEpoch) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user