diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-16 16:38:42 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-16 16:38:42 +0200 |
commit | 2daef1dcff3b4b7c2f2cdc9c64df5979738b59f3 (patch) | |
tree | 9021fb72ca3124fc726473d8d2958635512baafb /vote | |
parent | c6b91ff638656c2848e52c31cbbb965b651b245a (diff) |
drop superfluous variable prefix MUSSEL_
Diffstat (limited to 'vote')
-rw-r--r-- | vote/vote.ino | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vote/vote.ino b/vote/vote.ino index cc17e79..26c472a 100644 --- a/vote/vote.ino +++ b/vote/vote.ino @@ -29,8 +29,8 @@ #include <BLEEddystoneTLM.h> #include <BLEBeacon.h> -#define MUSSEL_VOTE_TIME_AHEAD 60000U // 1 minute -#define MUSSEL_VOTE_TIME_BEHIND 120000U // 2 minutes +#define VOTE_TIME_AHEAD 60000U // 1 minute +#define VOTE_TIME_BEHIND 120000U // 2 minutes // Limited size NOW!! can be transformed into infinite array #define STACK_SIZE 1000 @@ -115,11 +115,11 @@ bool qualifyVote(Vote vote, unsigned long currentTime) { // If the measure is 42 (YES), check timestamp validity if (vote.measure == 42) { // If the vote's timestamp is within 1 minute, count it as YES - if (currentTime - vote.timestamp <= MUSSEL_VOTE_TIME_AHEAD) { + if (currentTime - vote.timestamp <= VOTE_TIME_AHEAD) { return true; } // If the vote's timestamp is older than 2 minutes, count it as NO - else if (currentTime - vote.timestamp > MUSSEL_VOTE_TIME_BEHIND) { + else if (currentTime - vote.timestamp > VOTE_TIME_BEHIND) { return false; } } |