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.
This commit is contained in:
parent
3efd76e9d4
commit
776131e4cb
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
|||
*/
|
||||
MicroBitStorage::MicroBitStorage()
|
||||
{
|
||||
//initialise our magic block, if required.
|
||||
size();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue