battery-1

Dependencies:   PinDetect libmDot mbed-rtos mbed-src

Files at this revision

API Documentation at this revision

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 @@
 
  
 
+