Dual CANbus monitor and instrumentation cluster

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed

Fork of CANary by Tick Tock

Revision:
26:462ccb580472
Parent:
25:ddf0ec209f03
Child:
31:082372c83f68
--- a/utility.cpp	Fri Mar 15 04:28:34 2013 +0000
+++ b/utility.cpp	Sat Mar 16 02:07:09 2013 +0000
@@ -198,6 +198,14 @@
     fprintf(cfile,"x1_pp %d\r\n",tt.x1_pp);
     fprintf(cfile,"y1_pp %d\r\n",tt.y1_pp);
     fprintf(cfile,"x_mid %d\r\n",tt.x_mid);
+    if (dMode[0]==config1Screen)
+        fprintf(cfile,"dMode0 %d\r\n",dteScreen);
+    else
+        fprintf(cfile,"dMode0 %d\r\n",dMode[0]);
+    if (dMode[1]==config1Screen)
+        fprintf(cfile,"dMode1 %d\r\n",dteScreen);
+    else
+        fprintf(cfile,"dMode1 %d\r\n",dMode[1]);
     fclose(cfile);
 }
 
@@ -228,6 +236,8 @@
         fscanf(cfile, "x1_pp %d\r\n", &tt.x1_pp ) ;
         fscanf(cfile, "y1_pp %d\r\n", &tt.y1_pp ) ;
         fscanf(cfile, "x_mid %d\r\n", &tt.x_mid ) ;
+        fscanf(cfile, "dMode0 %d\r\n", &dMode[0] ) ;
+        fscanf(cfile, "dMode1 %d\r\n", &dMode[1] ) ;
         fclose(cfile);
     }
 }