From ce44a6a5f6b3da64334d5447041846f61f01b51b Mon Sep 17 00:00:00 2001 From: Tanishka Suwalka Date: Wed, 16 Apr 2025 16:38:57 +0200 Subject: use unsigned long to match timestamp type --- vote/vote.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vote/vote.ino b/vote/vote.ino index 26c472a..e695806 100644 --- a/vote/vote.ino +++ b/vote/vote.ino @@ -29,8 +29,9 @@ #include #include -#define VOTE_TIME_AHEAD 60000U // 1 minute -#define VOTE_TIME_BEHIND 120000U // 2 minutes +// Validity timing thresholds +const unsigned long VOTE_TIME_AHEAD = 1 * 60 * 1000; // 1 minute +const unsigned long VOTE_TIME_BEHIND = 2 * 60 * 1000; // 2 minutes // Limited size NOW!! can be transformed into infinite array #define STACK_SIZE 1000 -- cgit v1.2.3