Dual CANbus monitor and instrumentation cluster

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed

Fork of CANary by Tick Tock

Revision:
86:d1c9e8ac1c4b
Parent:
85:5c27e88b3fbe
Child:
87:46ac3f2519d6
--- a/utility.cpp	Wed Apr 17 12:45:13 2013 +0000
+++ b/utility.cpp	Wed Apr 17 20:41:14 2013 +0000
@@ -52,11 +52,10 @@
     signed short packV;
     signed short packA;
     signed long imWs_x4;
-    unsigned short ts=0; //moved getTimeStamp call to inside debug loop for speed
+    unsigned short ts=getTimeStamp();
 
     secsNoMsg=0; // reset deadman switch
     if(debugMode){ // code to insert actual number of dropped frames for overrun debug - skiped in normal mode to keep logcan short
-        ts = getTimeStamp();
         if(logOpen){
             if(canRXmsg.id>0) {
                 // check to see if buffer is already full (read - write) = 1