Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FatFileSystem MSCFileSystem SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed
Fork of CANary_corrupt by
Diff: displayModes.cpp
- Revision:
- 96:a6c6a6fd1d28
- Parent:
- 95:248b3c25a7df
- Child:
- 97:9f8bab96edff
diff -r 248b3c25a7df -r a6c6a6fd1d28 displayModes.cpp --- a/displayModes.cpp Fri May 03 12:18:10 2013 +0000 +++ b/displayModes.cpp Fri May 03 14:31:07 2013 +0000 @@ -72,7 +72,8 @@ void mainDisplay (bool force, bool showButtons){ unsigned short gids, SOC, packV; - static unsigned short lgids=0, lSOC=0, lpackV=0, lbattTemp_x4=99, maxPS=0; + static unsigned short lgids=0, lSOC=0, lpackV=0, maxPS=0; + static unsigned char lbattTemp_x4=0; static float lkW=0, laccV=0, lmpkWh=0; CANMessage msg; @@ -117,9 +118,9 @@ printf("%4.1fV \n",(float)packV/2); lpackV=packV; } - if(battTemp_x4!=lbattTemp_x4){ + if(force||battTemp_x4!=lbattTemp_x4){ tt.locate(200,170); - printf("%4.1fF \n",(float)battTemp_x4*9/20+32); + printf("%4.1fF\n",(float)battTemp_x4*9/20+32); lbattTemp_x4=battTemp_x4; } if(force||accV!=laccV){