3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Revision:
79:4e6b53eb678b
Parent:
74:749727490f44
Child:
80:959151952153
--- a/CircularArray/CircularArray.cpp	Wed Apr 26 21:58:08 2017 +0000
+++ b/CircularArray/CircularArray.cpp	Fri Apr 28 17:17:24 2017 +0000
@@ -34,9 +34,11 @@
     {
         currentElement += maxSize;
     }
+    
+    char* ptr;
     for(int i = 0; i < x; i++)
     {
-        char *ptr = array[currentElement].date.ToString();
+        ptr = array[currentElement].date.ToString();
         printf("\n\r%i. %s T: %f | H: %f | P: %f |",i + 1,ptr , array[currentElement].temperature, array[currentElement].humidity, array[currentElement].pressure);
         currentElement++;
         currentElement = currentElement % maxSize;