tell device what protocol version we support when connected

This commit is contained in:
liamcottle 2025-04-08 12:36:42 +12:00
parent e73632456d
commit 0210b5a438
6 changed files with 21 additions and 9 deletions

View file

@ -17,8 +17,8 @@ class WebSerialConnection extends SerialConnection {
});
// fire connected callback after constructor has returned
setTimeout(() => {
this.onConnected();
setTimeout(async () => {
await this.onConnected();
}, 0);
}