diff --git a/src/drivers/iconsole.js b/src/drivers/iconsole.js index 83479a3..109fa35 100644 --- a/src/drivers/iconsole.js +++ b/src/drivers/iconsole.js @@ -13,6 +13,8 @@ class IConsoleDriver { this.lastLevel = 18; this.workoutStatus = {}; this.started = false; + + this.state = "disconnected"; } async connect() { @@ -34,11 +36,9 @@ class IConsoleDriver { break; } } - }) - } + }); - get state() { - return this.client.state; + this.state = this.client.state; } async start() {