![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Diff: CircularArray/CircularArray.cpp
- Revision:
- 74:749727490f44
- Parent:
- 72:ef4a4e3089c1
- Child:
- 79:4e6b53eb678b
--- a/CircularArray/CircularArray.cpp Fri Apr 21 19:55:45 2017 +0000 +++ b/CircularArray/CircularArray.cpp Mon Apr 24 13:15:51 2017 +0000 @@ -37,7 +37,7 @@ for(int i = 0; i < x; i++) { char *ptr = array[currentElement].date.ToString(); - printf("\n\r%i. %s T: %f | H: %f | P: %f |",i,ptr , array[currentElement].temperature, array[currentElement].humidity, array[currentElement].pressure); + 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; }