Attempts to merge SPI_TFT2 & SPI_TFT_ILI9341

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed

Fork of CANary by Tick Tock

Revision:
155:f31006516956
Parent:
154:90ea16ca7475
Child:
156:4e5d30535cf9
--- a/displayModes.cpp	Wed Oct 16 03:47:48 2013 +0000
+++ b/displayModes.cpp	Sat Oct 19 15:38:44 2013 +0000
@@ -500,8 +500,9 @@
         }
     }
 
-    msg = lastMsg[indexLastMsg[0x1cb]]; //Get Target and Regen
+    msg = lastMsg[indexLastMsg[0x1d5]]; //Get Regen
     regenBraking = (msg.data[0]<<3)+(msg.data[1]>>5);
+    msg = lastMsg[indexLastMsg[0x1cb]]; //Get Target
     targetBraking = (msg.data[2]<<3)+(msg.data[3]>>5);
     msg = lastMsg[indexLastMsg[0x421]]; //Get Drive Mode
     if (msg.data[0]==0x18) { // In Neutral