Skip to content

Commit

Permalink
Fix version display
Browse files Browse the repository at this point in the history
  • Loading branch information
mkninc committed Aug 14, 2017
1 parent c383675 commit fc8c842
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
14 changes: 9 additions & 5 deletions src/Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ static void UITask(void * pvParameters) {

while(!systemReady);

#ifndef SIMULATION_BOARD
OLED_DrawString("V 0.9.0a", 8); //Version Number
Graph_Update();
vTaskDelay(500); //Pause to show version number
#endif

showBootLogoIfavailable();

previousWakeTime = xTaskGetTickCount();

while (1) {
Expand Down Expand Up @@ -114,11 +122,7 @@ void setup(void) {

Graphic_Init();

#ifndef SIMULATION_BOARD
OLED_DrawString("VER 0.XX", 8); //Version Number
#endif
delayMs(300); //Pause to show version number
showBootLogoIfavailable();

#ifndef SIMULATION_BOARD
Start_Watchdog(1000); //start the system watch dog as 1 second timeout
#endif
Expand Down
9 changes: 6 additions & 3 deletions src/Settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include "Oled.h"
#include "graphbuffer.h"

#include "FreeRTOS.h"
#include "task.h"

#include "Settings.h"


Expand Down Expand Up @@ -117,8 +120,8 @@ void showBootLogoIfavailable(void) {
if (temp8[3] != 0x0D)
return;


Graph_Clear();
Graph_DrawArea(0, 0, 96, 16, (uint8_t*) (temp8 + 4));

delayMs(1000);
Graph_Update();
vTaskDelay(1000);
}

0 comments on commit fc8c842

Please sign in to comment.