From 39a1d2e17d033270d26d87a56e1f897434d0cf30 Mon Sep 17 00:00:00 2001 From: Bertrand Date: Wed, 24 Feb 2021 08:18:46 +0100 Subject: [PATCH] resetting counter when line disabled you can now send a message 3 times, deactivate and activate to send a message 3 times again. --- framesenderwindow.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/framesenderwindow.cpp b/framesenderwindow.cpp index 49ce0d0..d887d33 100644 --- a/framesenderwindow.cpp +++ b/framesenderwindow.cpp @@ -430,7 +430,17 @@ void FrameSenderWindow::handleTick() for (int i = 0; i < sendingData.count(); i++) { sendData = &sendingData[i]; - if (!sendData->enabled) continue; //abort any processing on this if it is not enabled. + if (!sendData->enabled) + { + if (sendData->triggers.count() > 0) + { + for (int j = 0; j < sendData->triggers.count(); j++) //resetting currCount when line is disabled + { + sendData->triggers[j].currCount = 0; + } + } + continue; //abort any processing on this if it is not enabled. + } if (sendData->triggers.count() == 0) return; for (int j = 0; j < sendData->triggers.count(); j++) {