From 94e461e6c870a8c1a21086c588bbd49bcbd66a39 Mon Sep 17 00:00:00 2001
From: alejoe91 <alejoe9187@gmail.com>
Date: Sun, 12 Feb 2017 21:34:02 +0100
Subject: [PATCH] fix bug in setinterpulse method

---
 Source/Plugins/PulsePalOutput/serial/PulsePal.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Source/Plugins/PulsePalOutput/serial/PulsePal.cpp b/Source/Plugins/PulsePalOutput/serial/PulsePal.cpp
index f67597ea2..f5b91d597 100644
--- a/Source/Plugins/PulsePalOutput/serial/PulsePal.cpp
+++ b/Source/Plugins/PulsePalOutput/serial/PulsePal.cpp
@@ -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
+}
-- 
GitLab