summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2017-03-19 00:43:02 +0100
committernorly <ny-git@enpas.org>2017-03-19 00:43:02 +0100
commit8bcbe0b9982b5b2c2f9a6d730236694528244563 (patch)
tree950f666b1a4e198b120764cf5ea99b6eabb98750
parent6357000d97517389e2b15f8a7b01c4e83ef0d96f (diff)
Fix times once again...
-rw-r--r--vw-nm.c9
-rw-r--r--vw-nm.h7
2 files changed, 2 insertions, 14 deletions
diff --git a/vw-nm.c b/vw-nm.c
index c843902..5c15071 100644
--- a/vw-nm.c
+++ b/vw-nm.c
@@ -49,15 +49,6 @@ static void nm_update_my_next_id(struct NM_Main *nm) {
break;
}
} while (id != nm->my_id);
-
- if (nm->nodes[nm->my_id].next == nm->my_id) {
- /* Uh oh, we're the only one left. */
-
- /* TODO */
- nm->nodes[nm->my_id].state = NM_MAIN_LOGIN;
-
- /* TODO: Timeout 140ms (RCD 310) */
- }
}
diff --git a/vw-nm.h b/vw-nm.h
index fcb6b4b..23d0def 100644
--- a/vw-nm.h
+++ b/vw-nm.h
@@ -51,18 +51,15 @@ struct NM_Main {
/* OSEK/VDX NM: T_Typ
*
- * This timeout is ~49 ms in:
+ * This timeout is ~50 ms in:
* - 0x19 (RCD 310, Bosch)
- * (sometimes it takes a little longer)
*
* and ~45ms in:
* - 0x0b Instrument cluster?
* - 0x15 MDI
* - 0x1A Phone
- *
- * We may reduce it since we're not on a real-time OS.
*/
-#define NM_USECS_NORMAL_TURN 45000
+#define NM_USECS_NORMAL_TURN 50000
/* OSEK/VDX NM: T_Max