From 6db998a2401ace93ff9ff673d55d77205c192877 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Thu, 7 Nov 2019 21:31:59 +0100 Subject: [PATCH] fix fixes fixing fixes. --- src/drivers/iconsole.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() {