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.
Diff: Thermostat.cpp
- Revision:
- 13:142a142a7ac5
- Parent:
- 5:4cbe44452889
- Child:
- 14:6c24cab82ff0
diff -r 7a48b90b493e -r 142a142a7ac5 Thermostat.cpp
--- a/Thermostat.cpp Wed Jun 22 12:34:37 2016 +0000
+++ b/Thermostat.cpp Wed Jun 22 22:15:33 2016 +0000
@@ -13,7 +13,8 @@
_printer(printer),
_analog_out(pin),
_led(led_pin),
- _status(STATUS_OFF)
+ _status(STATUS_OFF),
+ _strStatus("Thermostat: OFF\n\r")
{
}
@@ -47,6 +48,7 @@
} else {
retVal = this->off();
}
+ this->update();
return(retVal);
}