Skip to content
Snippets Groups Projects
Commit 94e461e6 authored by alejoe91's avatar alejoe91
Browse files

fix bug in setinterpulse method

parent 36d8734b
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) ...@@ -176,7 +176,7 @@ void PulsePal::setInterPulseInterval(uint8_t channel, float timeInSeconds)
uint32_t timeInCycles = (uint32_t)(timeInSeconds * CycleFreq); uint32_t timeInCycles = (uint32_t)(timeInSeconds * CycleFreq);
constrain(&timeInCycles, 1, MAX_Cycles); constrain(&timeInCycles, 1, MAX_Cycles);
program(channel, 7, timeInCycles); program(channel, 7, timeInCycles);
PulsePal::currentOutputParams[channel].interPhaseInterval = timeInSeconds; PulsePal::currentOutputParams[channel].interPulseInterval = timeInSeconds;
} }
void PulsePal::setBurstDuration(uint8_t channel, float timeInSeconds) void PulsePal::setBurstDuration(uint8_t channel, float timeInSeconds)
...@@ -519,4 +519,4 @@ void PulsePal::syncAllParams() { ...@@ -519,4 +519,4 @@ void PulsePal::syncAllParams() {
messageBytes[pos] = (uint8_t)currentInputParams[2].triggerMode; pos++; messageBytes[pos] = (uint8_t)currentInputParams[2].triggerMode; pos++;
serial.writeBytes(messageBytes, 168); 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