From 65b62b66e3fcbebcd3a831415000abc474955b7c Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Tue, 4 Apr 2023 22:00:44 +0200 Subject: [PATCH] fix(debug): make BadgeUSB RX/TX debug switches public --- package.json | 2 +- src/badge-usb.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5382671..0cae84c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@badge.team/badge-webusb", - "version": "1.1.2", + "version": "1.1.3", "description": "Web API for the Badge.team MCH2022 badge", "keywords": [ "USB", diff --git a/src/badge-usb.ts b/src/badge-usb.ts index a8b9df5..cc36982 100644 --- a/src/badge-usb.ts +++ b/src/badge-usb.ts @@ -61,12 +61,12 @@ export class BadgeUSB { static readonly PROTOCOL_COMMAND_CONFIGURATION_WRITE = new DataView(this.textEncoder.encode("NVSW").buffer).getUint32(0, true); static readonly PROTOCOL_COMMAND_CONFIGURATION_REMOVE = new DataView(this.textEncoder.encode("NVSD").buffer).getUint32(0, true); - private listening = false; - private connected = false; - private debug = { + public debug = { rx: false, tx: false, }; + private listening = false; + private connected = false; constructor( private device: USBDevice,