diff options
author | Tanishka Suwalka <tanishkas@ruc.dk> | 2025-04-16 16:38:57 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-16 16:38:57 +0200 |
commit | ce44a6a5f6b3da64334d5447041846f61f01b51b (patch) | |
tree | 9f19bdc46d77d3809f8e7a14cd51c72b9670e62a | |
parent | 2daef1dcff3b4b7c2f2cdc9c64df5979738b59f3 (diff) |
use unsigned long to match timestamp type
-rw-r--r-- | vote/vote.ino | 5 |
1 files 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 <BLEEddystoneTLM.h> #include <BLEBeacon.h> -#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 |