Skip to content

Commit

Permalink
Fix HITS logging logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklik committed Jun 16, 2024
1 parent 00a183a commit 15e7888
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions fw/AIRDOS04/AIRDOS04.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1123,15 +1123,13 @@ void loop()
}
else
{
if (hit_count < EVENTS)
{
readRTC();
readRTC();

hit_time[hit_count] = tm;
hit_time_s100[hit_count]=tm_s100;
hit_channel[hit_count] = adcVal;
}
logHits();
hit_time[hit_count] = tm;
hit_time_s100[hit_count]=tm_s100;
hit_channel[hit_count] = adcVal;

if (hit_count >= (EVENTS-1)) logHits(); // log HITS message in case the EVENTS count is reached.
}
digitalWrite(DRESET, HIGH);

Expand Down

0 comments on commit 15e7888

Please sign in to comment.