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.
Dependencies: PinDetect libmDot mbed-rtos mbed-src
Revision 1:6011d8873701, committed 2015-10-20
- Comitter:
- socie123
- Date:
- Tue Oct 20 21:26:23 2015 +0000
- Parent:
- 0:a4991ca18f91
- Commit message:
- battery version-2
Changed in this revision
| thermostat_fan_demo-sensor-d55b476ea5e6/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/thermostat_fan_demo-sensor-d55b476ea5e6/main.cpp Tue Oct 20 07:26:07 2015 +0000
+++ b/thermostat_fan_demo-sensor-d55b476ea5e6/main.cpp Tue Oct 20 21:26:23 2015 +0000
@@ -127,8 +127,8 @@
}
timeToReadTemperature = false;
- }
- }
+ }
+
//uint16_t voltage;
while (1) {
@@ -137,6 +137,7 @@
timeToReadBattery = false;
}
+
if (dataChanged) {
char latestData[100];
transmitLED = 1;
@@ -144,6 +145,7 @@
sprintf(latestData, "temp: %d,set: %d,volt: %d", temperature, sentSetPoint, voltage);
printf("%s\r\n", latestData);
+
if (send(latestData)) {
dataChanged = false;
}
@@ -151,6 +153,7 @@
}
}
}
+}
void ledTock() {
transmitLED = !transmitLED;
@@ -294,3 +297,4 @@
+