From 7d17e0b719ef54eef20d8309bcc6232b5e73b8d0 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Tue, 22 Jul 2008 08:56:53 +0000
Subject: [PATCH] Fixed SII reading timeout bug on 100 Hz kernels.

---
 master/fsm_sii.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/master/fsm_sii.c b/master/fsm_sii.c
index 1c8fa8b1..a3ef3263 100644
--- a/master/fsm_sii.c
+++ b/master/fsm_sii.c
@@ -43,15 +43,18 @@
 #include "master.h"
 #include "fsm_sii.h"
 
-/**
- * Read/Write timeout. [ms]
+/** Read/write timeout [ms].
+ *
+ * Used to calculate timeouts bsed on the jiffies counter.
+ *
+ * \attention Must be more than 10 to avoid problems on kernels that run with
+ * a timer interupt frequency of 100 Hz.
  */
-#define SII_TIMEOUT 10
+#define SII_TIMEOUT 20
 
-/**
- * Time before evaluating answer at writing. [ms]
+/** Time before evaluating answer at writing [ms].
  */
-#define SII_INHIBIT  5
+#define SII_INHIBIT 5
 
 //#define SII_DEBUG
 
-- 
GitLab