Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/drivers/MicroBitThermometer.cpp
- Revision:
- 32:ece16b5987dd
- Parent:
- 31:87789e55bac7
- Child:
- 35:8ce23bc1af38
diff -r 87789e55bac7 -r ece16b5987dd source/drivers/MicroBitThermometer.cpp
--- a/source/drivers/MicroBitThermometer.cpp Wed Jul 13 12:18:10 2016 +0100
+++ b/source/drivers/MicroBitThermometer.cpp Wed Jul 13 12:18:11 2016 +0100
@@ -245,7 +245,7 @@
int MicroBitThermometer::setOffset(int offset)
{
if(this->storage != NULL)
- this->storage->put(ManagedString("tempCal"), (uint8_t *)&offset);
+ this->storage->put(ManagedString("tempCal"), (uint8_t *)&offset, sizeof(int));
this->offset = offset;
