run this here

Dependencies:   Hexi_KW40Z Hexi_OLED_SSD1351

Revision:
4:1ae9f76749b9
Parent:
3:f34bbdea0786
--- a/timeHelp.h	Tue Jun 12 00:27:26 2018 +0000
+++ b/timeHelp.h	Thu Jun 14 19:39:23 2018 +0000
@@ -5,6 +5,7 @@
 #include <string>
 
 // return true is seconds is even, false if not
+// currTime is in the form HH:MM:SS.s
 bool secondsAreEven(char currTime[]) {
     char seconds[3];
     seconds[0] = currTime[6];
@@ -16,9 +17,10 @@
     return (secondsInt % 2) == 0;
 }
 
-// given a starting time and a number of seconds, add the seconds to that time
-// and put the resulting string into resultTime ... both startTime and resultTime
-// must be character arrays of length 10
+// given a starting time (starttime) in the form HH:MM:SS.s
+// and a number of seconds (secsToAdd), add the seconds to that
+// time and put the resulting string into resultTime ... both
+// startTime and resultTime must be character arrays of length 10
 void addSecondsToCurrentTime(char startTime[], char resultTime[], float secsToAdd) {
 
     int decsToAdd=0,newSecsToAdd=0,minutesToAdd=0,hoursToAdd=0;
@@ -102,7 +104,8 @@
 }
 
 // given the current time in the form HH:MM:SS.S
-// give me back the number of seconds in that number
+// give me back the number of seconds from 00:00:00.0
+// at that time
 float currTimeSecs(char currentTime[]) {
     // hours
     char hours[3];