Import last changes from 2017-03-26, including MDI hack
[revag-nm.git] / vw-nm.h
diff --git a/vw-nm.h b/vw-nm.h
index fcb6b4ba455ab8f5047ee4d982c95ad5cf3286a9..b9fd981bfdd0bc7c6336195cb42347ec3fa41597 100644 (file)
--- a/vw-nm.h
+++ b/vw-nm.h
@@ -44,6 +44,9 @@ struct NM_Main {
 
        struct timeval tv;
        enum timer_reason timer_reason;
+
+       /* How many times have we been alone when we reset? */
+       int lonely_resets;
 };
 
 
@@ -51,18 +54,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