microbit: BUGFIX for MicroBitStorage
There was a bug with Bluetooth pairing. If a user were to bond with the micro:bit, and the KeyValueStore region had not been configured, the class would attempt to write to flash in interrupt context, which conflicted with soft device. The fix is to do this initialisation in the constructor for MicroBitStorage.master
parent
3efd76e9d4
commit
776131e4cb
|
@ -12,6 +12,8 @@
|
|||
*/
|
||||
MicroBitStorage::MicroBitStorage()
|
||||
{
|
||||
//initialise our magic block, if required.
|
||||
size();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue