Dual CANbus monitor and instrumentation cluster supporting ILI9341 display controller

Dependencies:   SPI_TFTx2_ILI9341 TOUCH_TFTx2_ILI9341 TFT_fonts mbed

Fork of CANary by Tick Tock

Revision:
32:c9d9b6cb5de1
Parent:
31:082372c83f68
Child:
33:a277743ebdeb
--- a/utility.cpp	Sun Mar 17 12:17:33 2013 +0000
+++ b/utility.cpp	Tue Mar 19 01:23:26 2013 +0000
@@ -121,7 +121,7 @@
     logCan(0,tsMsg);
 }
 
-void sendCPreq() {
+/*void sendCPreq() {
     char i;
     char data[8] = {0x02, 0x21, 0x02, 0xff, 0xff, 0xff, 0xff, 0xff};
     can1.monitor(false); // set to active mode
@@ -153,7 +153,7 @@
     }
     can1SleepMode = 1; // disable TX
     can1.monitor(true); // set to snoop mode
-}
+}*/
 
 void msgSend() {
     //char sTemp[40];
@@ -193,7 +193,7 @@
         can1.write(CANMessage(0x79b, data, 8));
         Tcount+=1;
     } else if (Tcount<5){
-        showCP=true;
+        showCP=true; // Trigger display update
         Tcount+=1;
         can1SleepMode = 1; // disable TX
         can1.monitor(true); // set to snoop mode