[chronojump] encoder signal generator: fixed random pause



commit 5324c8475ff3b00cf49c1cdcbf2572f4d52e1085
Author: Xavier Padullés <x padulles gmail com>
Date:   Wed Apr 25 13:04:05 2018 +0200

    encoder signal generator: fixed random pause

 .../encoderSignalGenerator.ino                     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/arduino/encoderSignalGenerator/encoderSignalGenerator.ino 
b/arduino/encoderSignalGenerator/encoderSignalGenerator.ino
index f791e20..8619ec3 100644
--- a/arduino/encoderSignalGenerator/encoderSignalGenerator.ino
+++ b/arduino/encoderSignalGenerator/encoderSignalGenerator.ino
@@ -37,7 +37,7 @@ void loop() {
     delay(1);
     eccentric(repRange,(int) random(200, 3000));
     delay(1);
-    if(random(0,1) > 0.95){
+    if(random(100) > 95){
       delay(10000);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]