mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-16 18:22:09 +02:00
fix esp8266 build fail
This commit is contained in:
@ -1186,7 +1186,8 @@ int Configuration::getLastOta(void) {
|
|||||||
logError("Current year " + String(curYear) + String(" invalid"));
|
logError("Current year " + String(curYear) + String(" invalid"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
time_t lastOta = jconfig[jprop_lastOta];
|
double _t = jconfig[jprop_lastOta];
|
||||||
|
time_t lastOta = (time_t)_t;
|
||||||
time_t curTime = mktime(&timeInfo);
|
time_t curTime = mktime(&timeInfo);
|
||||||
logInfo("Last ota time: " + String(lastOta));
|
logInfo("Last ota time: " + String(lastOta));
|
||||||
if (lastOta == 0) {
|
if (lastOta == 0) {
|
||||||
@ -1211,7 +1212,7 @@ void Configuration::updateLastOta(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time_t lastOta = mktime(&timeInfo);
|
time_t lastOta = mktime(&timeInfo);
|
||||||
jconfig[jprop_lastOta] = lastOta;
|
jconfig[jprop_lastOta] = (unsigned long)lastOta;
|
||||||
logInfo("Last OTA: " + String(lastOta));
|
logInfo("Last OTA: " + String(lastOta));
|
||||||
saveConfig();
|
saveConfig();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user