bsiever / microbit-webusb

WebUSB Utils for Micro:bit
MIT License
30 stars 8 forks source link

serial.writeValue() breaks connection #6

Closed CaptainCredible closed 2 months ago

CaptainCredible commented 2 months ago

Hi! its been a year and something is broken again. I cant tell where the issue is (microbit or chrome) but sending a serial.writeValue("x", 123) causes the microbit to disconnect. Sending basig strings using e.g. serial.writeLine() works fine however. in some situations the disconnect is accompanied by the error : "Bad response for 8 -> 17" as in your examples: Screenshot 2024-09-09 at 17 58 28

Hope this is an easy fix as I hope to use this in teaching a university course this friday.

Finger crossed!

CaptainCredible commented 2 months ago

Wait a minute, i think this might be an error in my code...

CaptainCredible commented 2 months ago

Yes sorry, things seem to be working now. ignore what i said.

bsiever commented 2 months ago

I'm glad you were able to resolve it!