From 9c1d4cc3f5268e4577e8d822eecc67f633a1e316 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Thu, 30 Mar 2023 14:35:36 +0200 Subject: [PATCH] Fix BadgeUSB.connect() --- package.json | 2 +- src/badge-usb.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 413c0a4..ea9b80e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@badge.team/badge-webusb", - "version": "1.0.0-RC1", + "version": "1.0.0-RC2", "description": "Web API for the Badge.team MCH2022 badge", "keywords": [ "USB", "WebUSB", diff --git a/src/badge-usb.ts b/src/badge-usb.ts index d6f7121..bda8545 100644 --- a/src/badge-usb.ts +++ b/src/badge-usb.ts @@ -109,7 +109,7 @@ export class BadgeUSB { await badge.controlReset(false); } - await badge._listen(); + badge._listen(); let protocolVersion: number | undefined; while (protocolVersion == undefined) {