We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a183a commit 15e7888Copy full SHA for 15e7888
fw/AIRDOS04/AIRDOS04.ino
@@ -1123,15 +1123,13 @@ void loop()
1123
}
1124
else
1125
{
1126
- if (hit_count < EVENTS)
1127
- {
1128
- readRTC();
+ readRTC();
1129
1130
- hit_time[hit_count] = tm;
1131
- hit_time_s100[hit_count]=tm_s100;
1132
- hit_channel[hit_count] = adcVal;
1133
- }
1134
- 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.
1135
1136
digitalWrite(DRESET, HIGH);
1137
0 commit comments