Forked to avoid changing the publioc repo
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/drivers/MicroBitCompass.cpp
- Revision:
- 31:87789e55bac7
- Parent:
- 30:db87179335d5
- Child:
- 32:ece16b5987dd
--- a/source/drivers/MicroBitCompass.cpp Wed Jul 13 12:18:08 2016 +0100 +++ b/source/drivers/MicroBitCompass.cpp Wed Jul 13 12:18:10 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;