Dual CANbus monitor and instrumentation cluster supporting ILI9341 display controller
Dependencies: SPI_TFTx2_ILI9341 TOUCH_TFTx2_ILI9341 TFT_fonts mbed
Fork of CANary by
Diff: utility.cpp
- Revision:
- 43:e7f6f80590e3
- Parent:
- 41:8d4609ea7259
- Child:
- 48:d1ce92104a1f
--- a/utility.cpp Sun Mar 31 20:38:15 2013 +0000 +++ b/utility.cpp Tue Apr 02 06:32:25 2013 +0000 @@ -261,8 +261,6 @@ tt.calibrate(); // run touchscreen calibration routine saveConfig(); } else { - sprintf(sTemp,"Reading config file.\n"); - logMsg(sTemp); //tt.setcal(5570, 34030, 80, 108, 33700, 5780, 82, 108, 32500);// bypass calibration using my values fscanf(cfile, "format %c\r\n", &ff ) ; fscanf(cfile, "x0_off %d\r\n", &tt.x0_off ) ; @@ -290,6 +288,8 @@ fclose(cfile); if(ff<2) //If not latest format, save as latest format saveConfig(); + sprintf(sTemp,"Config file loaded.\n"); + logMsg(sTemp); } }