Skip to content
Snippets Groups Projects
Commit ef997311 authored by Josh Siegle's avatar Josh Siegle Committed by GitHub
Browse files

Merge pull request #115 from CINPLA/pulsepal-setinterpulse-fix

Pulsepal setinterpulse fix
parents 5a1620db 94e461e6
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ void PulsePal::setInterPulseInterval(uint8_t channel, float timeInSeconds)
uint32_t timeInCycles = (uint32_t)(timeInSeconds * CycleFreq);
constrain(&timeInCycles, 1, MAX_Cycles);
program(channel, 7, timeInCycles);
PulsePal::currentOutputParams[channel].interPhaseInterval = timeInSeconds;
PulsePal::currentOutputParams[channel].interPulseInterval = timeInSeconds;
}
void PulsePal::setBurstDuration(uint8_t channel, float timeInSeconds)
......@@ -519,4 +519,4 @@ void PulsePal::syncAllParams() {
messageBytes[pos] = (uint8_t)currentInputParams[2].triggerMode; pos++;
serial.writeBytes(messageBytes, 168);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment