microbit-dal

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Lancaster University

Revision:
31:87789e55bac7
Parent:
30:db87179335d5
Child:
32:ece16b5987dd
--- a/source/drivers/MicroBitThermometer.cpp	Wed Jul 13 12:18:08 2016 +0100
+++ b/source/drivers/MicroBitThermometer.cpp	Wed Jul 13 12:18:10 2016 +0100
@@ -245,7 +245,7 @@
 int MicroBitThermometer::setOffset(int offset)
 {
     if(this->storage != NULL)
-        this->storage->put(ManagedString("tempCal"), (uint8_t *)&offset, sizeof(int));
+        this->storage->put(ManagedString("tempCal"), (uint8_t *)&offset);
 
     this->offset = offset;