 }
 
 //--------------------------------------------------------------------------------
+//! \brief   Read and evaluate odometer
+//! \return  report success (boolean)
+//--------------------------------------------------------------------------------
+boolean ReadTime() {
+  setCAN_Filter(0x512);
+  CAN_Timeout.Reset();
+  
+  if(!digitalRead(2)) {    
+    do {    
+    CAN0.readMsgBuf(&rxID, &len, rxBuf); 
+      if (rxID == 0x512) {
+        BattDiag.hour = (unsigned int) rxBuf[0];
+        BattDiag.minutes = (unsigned int) rxBuf[1];
+        return true;
+      }
+    } while (!CAN_Timeout.Expired(false));
+  }
+  return false;
+}
+
+//--------------------------------------------------------------------------------
 //! \brief   LOOP()
 //--------------------------------------------------------------------------------
 void loop()

  byte Month;                    //!< month of battery production
  byte Year;                     //!< year of battery production
  
  float SOC;                     //!< State of Charge, as reported by vehicle dash
  float HV;                      //!< total voltage of HV system in V
  float LV;                      //!< 12V onboard voltage / LV system
  unsigned long ODO;             //!< Odometer count
  
  int Temps[13];                 //!< three temperatures per battery unit (1 to 3)

//--------------------------------------------------------------------------------
// ED BMSdiag, v0.35
// Retrieve battery diagnostic data from your smart electric drive EV.
//
// (c) 2016 by MyLab-odyssey
