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.
Revision 2:7b8ab39a1b6d, committed 2020-06-19
- Comitter:
- reedas
- Date:
- Fri Jun 19 10:09:08 2020 +0000
- Parent:
- 1:fe2e90c1c706
- Commit message:
- clean up display
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jun 19 09:12:31 2020 +0000 +++ b/main.cpp Fri Jun 19 10:09:08 2020 +0000 @@ -67,13 +67,13 @@ //rawtime = rawtime - (4*60*60); // UTC - 4hours ... serious hack which only works in summer rawtime = rawtime + 3600; // GMT + 1 for BST timeinfo = localtime (&rawtime); - strftime (buffer,sizeof(buffer),"%r",timeinfo); + strftime (buffer,sizeof(buffer)," %r ",timeinfo); GUI_SetFont(GUI_FONT_32B_1); GUI_DispStringHCenterAt(buffer,LCD_GetXSize()/2,LCD_GetYSize()/2 - GUI_GetFontSizeY()/2 - 20); - strftime (buffer,sizeof(buffer),"%A",timeinfo); + strftime (buffer,sizeof(buffer)," %A ",timeinfo); GUI_SetFont(GUI_FONT_32B_1); GUI_DispStringHCenterAt(buffer,LCD_GetXSize()/2,LCD_GetYSize()/2 - GUI_GetFontSizeY()/2 + 20); - strftime (buffer,sizeof(buffer),"%D",timeinfo); + strftime (buffer,sizeof(buffer)," %D ",timeinfo); GUI_SetFont(GUI_FONT_32B_1); GUI_DispStringHCenterAt(buffer,LCD_GetXSize()/2,LCD_GetYSize()/2 - GUI_GetFontSizeY()/2 + 60); }