lancaster-university/microbit

Error/inconsistency in ManagedString MicroBit::getSerial()

Opened this issue · 0 comments

This may not be worth fixing at this point, but getSerial() breaks the serial number from microbit_serial_number() into two parts, the lower and then the upper. It returns a string that is the "lower + upper" rather than "upper + lower".

MakeCode will provide the serial number using the full int directly from microbit_serial_number(), so it shows the correct value from the NRF_FICR register.

The "reversed" value from getSerial() is used in the BLE Device Information Service and will be inconsistent with the serial number shown from MakeCode.