Skip to content

Commit e9cfaaa

Browse files
committed
Fix check for ALP data update.
ALP data was not checked for update when it should be. Thanks to schiermi for the detailed report & fix
1 parent be615d4 commit e9cfaaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/alpdata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void AlpData::update(SSD1306DisplayDevice *display) {
3838
if (!f || f.size() < ALP_DATA_MIN_FILE_SIZE ) {
3939
lastModified = "";
4040
} else if (lastWrite > TimeUtils::PAST_TIME &&
41-
time(nullptr) - lastWrite > 4 * 24 * 60 * 60) {
41+
time(nullptr) - lastWrite < 4 * 24 * 60 * 60) {
4242
log_d("File still current %s",
4343
TimeUtils::dateTimeToString(lastWrite).c_str());
4444
log_d("Now: %s",

0 commit comments

Comments
 (0)