Skip to content

Commit

Permalink
Fix check for ALP data update.
Browse files Browse the repository at this point in the history
ALP data was not checked for update when it should be. Thanks to schiermi for the detailed report & fix
  • Loading branch information
amandel committed May 22, 2024
1 parent be615d4 commit e9cfaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/alpdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void AlpData::update(SSD1306DisplayDevice *display) {
if (!f || f.size() < ALP_DATA_MIN_FILE_SIZE ) {
lastModified = "";
} else if (lastWrite > TimeUtils::PAST_TIME &&
time(nullptr) - lastWrite > 4 * 24 * 60 * 60) {
time(nullptr) - lastWrite < 4 * 24 * 60 * 60) {
log_d("File still current %s",
TimeUtils::dateTimeToString(lastWrite).c_str());
log_d("Now: %s",
Expand Down

0 comments on commit e9cfaaa

Please sign in to comment.