Marumbo Sichinga / Mbed 2 deprecated SmartWatchTopicDisplay

Dependencies:   mbed

Revision:
5:235bf7c41262
Parent:
4:63bf2f3d54a5
Child:
6:288c9d9d59e4
--- a/main.cpp	Sat Jul 10 21:40:09 2021 +0000
+++ b/main.cpp	Sun Jul 11 18:17:00 2021 +0000
@@ -1,6 +1,4 @@
-    
-
-#include "mbed.h"
+ #include "mbed.h"
 #include "C12832.h"
 #include "Sht31.h"
 #include <string>
@@ -272,7 +270,6 @@
 }
  
 void PrintContent(){
-    loraTimerStart = time(NULL);
     Display(content[current_topic][1]);
 
 }
@@ -280,6 +277,7 @@
 void CheckDirection(){
     pushButton.rise(callback(&StartButtonTimer)); 
     pushButton.fall(callback(&StopButtonTimer));
+    loraTimerStart = time(NULL);
     
     while(1) {
     if(direction == 0) //O is a forward direction
@@ -324,6 +322,7 @@
     printf("Mode 2... \n");
     printf("current topic %s \n", content[current_topic][0].c_str());
     flipper.detach();
+    whiteLed = 0;
     
     lcd.cls();
     wait_ms(500);