DesignForAmputee hw 5 project

Dependencies:   mbed BLE_API nRF51822

Revision:
11:8500dadc8a7e
Parent:
10:0193462ea6f1
--- a/main.cpp	Sun Nov 09 22:38:56 2014 +0000
+++ b/main.cpp	Sun Nov 09 23:01:02 2014 +0000
@@ -52,10 +52,9 @@
             powerSwitch = 0;
         }
         //ble.updateCharacteristicValue(uartServicePtr->getRXCharacteristicHandle(), params->data, bytesRead);
-        char buffer[30];
-        sprintf(buffer,"%4.0f",tempF);
-        char *data [] = {buffer};
-        ble.updateCharacteristicValue(uartServicePtr->getRXCharacteristicHandle(), (uint8_t *)data, sizeof(&data));
+        char buffer[9];
+        sprintf(buffer,"%4.4f",tempF);
+        ble.updateCharacteristicValue(uartServicePtr->getRXCharacteristicHandle(), (uint8_t *)buffer, sizeof(&buffer));
 
     }
 }