Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SOFT253_Template_Weather_OS_54 by
Diff: main.cpp
- Revision:
- 47:468a89d62c23
- Parent:
- 46:0de1f3c7d118
- Child:
- 48:a8219954b3f2
--- a/main.cpp Thu Apr 06 15:31:01 2017 +0000
+++ b/main.cpp Thu Apr 06 15:46:00 2017 +0000
@@ -60,10 +60,11 @@
barometer.get();
pressure = barometer.pressure();
-
+
measure->temperature = temperature;
measure->humidity = humidity;
measure->pressure = pressure;
+ measure->date = new LocalDate(localDate);
//Write to queue
osStatus stat = mail_box.put(measure); //Note we are sending the "pointer"
@@ -90,7 +91,7 @@
//Make a copy
// printf("Consumer: %fC | %f% % | %f \r\n", measure->temperature, measure->humidity,measure->pressure);
- Measure msr(measure->temperature, measure->humidity,measure->pressure);
+ Measure msr(measure->date,measure->temperature, measure->humidity,measure->pressure);
listBuffer->addValueEnd(msr);
//We are done with this, so give back the memory to the pool
mail_box.free(measure);
