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
James Devine 2016-03-26 14:03:40 +00:00
parent 3efd76e9d4
commit 776131e4cb
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@
//initialise our magic block, if required.