Solution for Bluetooth SIG hands-on training course

Dependencies:   BLE_API mbed-dev-bin nRF51822-bluetooth-mdw

Dependents:   microbit

Fork of microbit-dal-bluetooth-mdw_starter by Martin Woolley

Revision:
35:8ce23bc1af38
Parent:
32:ece16b5987dd
Child:
37:b624ae5e94a5
diff -r 9162efc289ca -r 8ce23bc1af38 source/drivers/MicroBitCompass.cpp
--- a/source/drivers/MicroBitCompass.cpp	Wed Jul 13 12:18:13 2016 +0100
+++ b/source/drivers/MicroBitCompass.cpp	Wed Jul 13 12:18:14 2016 +0100
@@ -703,7 +703,7 @@
 void MicroBitCompass::setCalibration(CompassSample calibration)
 {
     if(this->storage != NULL)
-        this->storage->put(ManagedString("compassCal"), (uint8_t *)&calibration, sizeof(CompassSample));
+        this->storage->put(ManagedString("compassCal"), (uint8_t *)&calibration);
 
     average = calibration;
     status |= MICROBIT_COMPASS_STATUS_CALIBRATED;