From 1f22fd77f8f9731cbfa4ed457c048824e9ac17ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Bert=C3=B3k?= Date: Mon, 24 Jul 2023 01:02:00 +0200 Subject: [PATCH] Update Clockwork_Code.ino Fixed a bug that caused trigger lengths to be shorter than 4ms. --- Clockwork_Code/Clockwork_Code.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Clockwork_Code/Clockwork_Code.ino b/Clockwork_Code/Clockwork_Code.ino index 6ab83dd..fdc1a6b 100644 --- a/Clockwork_Code/Clockwork_Code.ino +++ b/Clockwork_Code/Clockwork_Code.ino @@ -19,7 +19,7 @@ Shifting trigger sequencer, clock divider, and timing distributor for the 208. ——————————————————————————————————————————————————————————————————————————————————— - Version 1.1 + Version 1.2 Code by Triglav Modular Anti-copyright 2023 @@ -361,7 +361,7 @@ void loop() { currentMicros = micros(); - if (currentMicros - trigMicros > trigLength) { + if (currentMicros - trigMicros > (trigLength + 1000)) { trigLengthEnforcer(); } @@ -379,4 +379,4 @@ void loop() { nextStep(); } } -} \ No newline at end of file +}