Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE - make Device Info Service Model Number String sensitive to board ID #114

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

martinwork
Copy link
Collaborator

MicroBit::init() passes board ID from power.getVersion() to MicroBitBLEManager::init(), which replaces fixed "V2.0" with "V2.0" for known IDs (0x9903/4), and "V2.X" for unknown IDs.

@finneyj
Copy link
Contributor

finneyj commented Aug 9, 2021

Thanks @martinwork. Looks good.

@finneyj finneyj merged commit 8d17105 into lancaster-university:master Aug 9, 2021
microbit-carlos added a commit to microbit-carlos/codal-microbit-v2 that referenced this pull request Jan 27, 2023
Before PR lancaster-university#114 the string was "BBC micro:bit V2.0", with that PR
it was updated to indicate "BBC micro:bit V2.0" for board ID 0x9904
and "V2.X" to any unknown board ID (currently V2.2 boards would still
appear as "V2.X").

lancaster-university#114

There is no need for BLE apps or devices to distinguish between
different V2 versions, just as we currently don't differentiate between
V1.3 and V1.5.

Hardcoding this in CODAL to be "BBC micro:bit V2" also removes
an I2C call to the interface chip on uBit.init(), which help us better support
unofficial interface chip firmwares, like Segger's J-Link.

Fixes lancaster-university#208

Related to lancaster-university#137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants