Skip to content

Commit 8ae31f6

Browse files
committed
Simplify template dynamic caching example
1 parent 0a5913b commit 8ae31f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Templates/Templates.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void setUptimeInMinutes(unsigned t) {
4242
uptimeInMinutes = t;
4343
// Update caching header with a new value as well
4444
if (uptimeHandler) {
45-
uptimeHandler->setLastModified(static_cast<time_t>(t * 60));
45+
uptimeHandler->setLastModified();
4646
}
4747
}
4848

0 commit comments

Comments
 (0)