aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vote/vote.ino5
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