diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-16 23:41:46 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-16 23:41:46 +0200 |
commit | 49378cf8be49d15f00dd39e8cdcf0df38d521a11 (patch) | |
tree | 15af28d8674b7f3daa499fb377f627eee91c2f0d /vote | |
parent | a32a82126b77caf2d53dea2a25f91acb3496c2f8 (diff) |
rename functions qualifyMusselVote -> qualifyBallot, concludeMusselVote -> concludeVote
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 9423c02..a9622b5 100644 --- a/vote/vote.ino +++ b/vote/vote.ino @@ -170,7 +170,7 @@ void alignVotes() { } /// Decide whether a vote is valid based on age -const char* qualifyMusselVote( +const char* qualifyBallot( unsigned long voteTimestamp, unsigned long now ) { unsigned long age = now - voteTimestamp; @@ -187,7 +187,7 @@ const char* qualifyMusselVote( } /// Output the final vote decision for mussels -void concludeMusselVote() { +void concludeVote() { int openVotes = 0; int totalValidVotes = 0; @@ -203,7 +203,7 @@ void concludeMusselVote() { unsigned long now = millis(); // Check if the vote is valid using the qualify function - const char* validity = qualifyMusselVote(latest.timestamp, now); + const char* validity = qualifyBallot(latest.timestamp, now); if (strcmp(validity, "valid") == 0) { totalValidVotes++; // Count valid votes @@ -283,7 +283,7 @@ void loop() { pBLEScan->clearResults(); alignVotes(); - concludeMusselVote(); + concludeVote(); cleanOldVotes(); // Keeps the voter stack tidy delay(500); |