Skip to content

Commit

Permalink
Update stored sample values for consistency in data recording
Browse files Browse the repository at this point in the history
  • Loading branch information
FredM67 committed Jan 12, 2025
1 parent 3d0597d commit 5101cc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/RST_3phase_free_dev/RST_3phase_free_dev.ino
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ void allGeneralProcessing() // each iteration is for one set of data samples
if ((sampleSetsDuringThisHalfMainsCycle == 3) && (cycleNumberBeingRecorded == 1))
{
setPinON(outputForTrigger); // triac will fire at the next ZC point
storedSample_V1[samplesRecorded] = 999;
storedSample_I1[samplesRecorded] = 999;
storedSample_I1_from_ADC[samplesRecorded] = 999;
storedSample_V1[samplesRecorded] = 99999;
storedSample_I1[samplesRecorded] = 99999;
storedSample_I1_from_ADC[samplesRecorded] = 99999;
++samplesRecorded;
}
// check to see whether the trigger device can now be reliably disarmed
Expand Down

0 comments on commit 5101cc2

Please sign in to comment.