[chronojump] encoder signal generator: fixed random pause
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] encoder signal generator: fixed random pause
- Date: Wed, 25 Apr 2018 11:05:13 +0000 (UTC)
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]