Open hinxx opened 1 month ago
Given board-serial-info.ts:20 USB serial number unexpected length: 16
:
Here is what my lsusb shows for microbit:
Thanks for reporting.
We're parsing the serial to determine whether to flash MicroPython for a V1 or V2 micro:bit. The serial in lsusb output parses correctly.
The issue reproduces in Brave cross platform.
It seems that Brave has an anti-fingerprinting feature that randomises the USB device's serial number. We'll give some thought to what we can do in this scenario. In the meantime, if you're happy to do so, in my testing it works successfully with the fingerprinting setting changed for the site:
I think this is how MakeCode is making the same decision without requiring the serial: https://github.com/microsoft/pxt-microbit/blob/bd4bda19f33ba30ea61e3620c8fa069b8306d07e/editor/flash.ts#L326
In the meantime, if you're happy to do so, in my testing it works successfully with the fingerprinting setting changed for the site:
Yeah, that works.
Thanks for looking into this!
Bug Description
Can not connect to microbit.
How To Reproduce
Steps to reproduce the behavior:
Expected behavior
Be able to download code to microbit.. FWIW, I can connect to the same device with https://makecode.microbit.org/#editor. I'm only trying one editor at a time.
Environment
screenshots
Additional context
My microbit:
Developer console in browser shows this: