mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 05:06:39 +01:00
Bugfix: Update variable minutesUntilNextUpdate to 32-bit integer because of integer overflow
This commit is contained in:
@@ -64,7 +64,7 @@ void contentRunner() {
|
||||
}
|
||||
|
||||
if (taginfo->expectedNextCheckin > now - 10 && taginfo->expectedNextCheckin < now + 30 && taginfo->pendingIdle == 0 && taginfo->pendingCount == 0) {
|
||||
int16_t minutesUntilNextUpdate = (taginfo->nextupdate - now) / 60;
|
||||
int32_t minutesUntilNextUpdate = (taginfo->nextupdate - now) / 60;
|
||||
if (minutesUntilNextUpdate > config.maxsleep) {
|
||||
minutesUntilNextUpdate = config.maxsleep;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user