Dual CANbus monitor and instrumentation cluster

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed

Fork of CANary by Tick Tock

Files at this revision

API Documentation at this revision

Comitter:
TickTock
Date:
Wed Apr 17 12:05:08 2013 +0000
Parent:
83:52b1f330a62d
Child:
85:5c27e88b3fbe
Commit message:
Fixed DTE draw bug#2

Changed in this revision

common.h Show annotated file Show diff for this revision Revisions of this file
displayModes.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/common.h	Wed Apr 17 11:48:10 2013 +0000
+++ b/common.h	Wed Apr 17 12:05:08 2013 +0000
@@ -20,7 +20,7 @@
 #define ggSkin 1
 #define maxSkin 1
 
-#define maxBufLen 512
+#define maxBufLen 1024
 #define canTimeout 5
 #define userTimeout 15
 #define debugMode false
@@ -29,4 +29,3 @@
 // #define tNavRow = 2 ; // for 3x3
 extern unsigned char tNavRow ; // gg - 4x4
 extern char revStr[7]; // gg - version
-
--- a/displayModes.cpp	Wed Apr 17 11:48:10 2013 +0000
+++ b/displayModes.cpp	Wed Apr 17 12:05:08 2013 +0000
@@ -829,7 +829,7 @@
         }
         lgids=gids;    
     }
-    if(updateDTE){
+    if(updateDTE||force){
         for(i=0;i<10;i++){
             y=200-i*20;
             tt.line(40,y,158,y,DarkGrey);
--- a/main.cpp	Wed Apr 17 11:48:10 2013 +0000
+++ b/main.cpp	Wed Apr 17 12:05:08 2013 +0000
@@ -60,7 +60,7 @@
 FILE *cfile;
 FILE *file;
 char fileName[35] = "" ;
-char writeBuffer[maxBufLen][13];// __attribute__ ((section("AHBSRAM1"))); // buffer for USB write
+char writeBuffer[maxBufLen][13] __attribute__ ((section("AHBSRAM1"))); // buffer for USB write
 char indexLastMsg[0x800]={0}; // index table for last message
 CANMessage lastMsg[100]; // table to store last message of eachtype
 unsigned char battData[256]={0};