Skip to content

Commit

Permalink
Merge pull request #99 from fape/fix_compile_now
Browse files Browse the repository at this point in the history
fix compile error
  • Loading branch information
voroshkov authored Dec 31, 2018
2 parents e4d410b + 7503bf2 commit 21f14f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Arduino/chorus_rf_laptimer/chorus_rf_laptimer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ uint8_t isSendQueueFull = 0;

//----- Lap timings--------------------------------
uint32_t lastMilliseconds = 0;
uint32_t now = 0;
uint32_t raceStartTime = 0;
#define MIN_MIN_LAP_TIME 1 //seconds
#define MAX_MIN_LAP_TIME 120 //seconds
Expand Down
2 changes: 1 addition & 1 deletion Arduino/chorus_rf_laptimer/mainDetectionAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ void runLapDetectionAlgorithm() {
if (allowLapGeneration) { // we haven't fired event for this drone proximity case yet
allowLapGeneration = 0;

uint32_t now = millis();
now = millis();
uint32_t diff = now - lastMilliseconds; //time diff with the last lap (or with the race start)
if (timeAdjustment != 0 && timeAdjustment != INFINITE_TIME_ADJUSTMENT) {
diff = diff + (int32_t)diff/timeAdjustment;
Expand Down

0 comments on commit 21f14f4

Please sign in to comment.