Skip to content

Commit ef99731

Browse files
authored
Merge pull request #115 from CINPLA/pulsepal-setinterpulse-fix
Pulsepal setinterpulse fix
2 parents 5a1620d + 94e461e commit ef99731

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Plugins/PulsePalOutput/serial/PulsePal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void PulsePal::setInterPulseInterval(uint8_t channel, float timeInSeconds)
176176
uint32_t timeInCycles = (uint32_t)(timeInSeconds * CycleFreq);
177177
constrain(&timeInCycles, 1, MAX_Cycles);
178178
program(channel, 7, timeInCycles);
179-
PulsePal::currentOutputParams[channel].interPhaseInterval = timeInSeconds;
179+
PulsePal::currentOutputParams[channel].interPulseInterval = timeInSeconds;
180180
}
181181

182182
void PulsePal::setBurstDuration(uint8_t channel, float timeInSeconds)
@@ -519,4 +519,4 @@ void PulsePal::syncAllParams() {
519519
messageBytes[pos] = (uint8_t)currentInputParams[2].triggerMode; pos++;
520520

521521
serial.writeBytes(messageBytes, 168);
522-
}
522+
}

0 commit comments

Comments
 (0)