|
@ -13,6 +13,8 @@ class IConsoleDriver { |
|
|
this.lastLevel = 18; |
|
|
this.lastLevel = 18; |
|
|
this.workoutStatus = {}; |
|
|
this.workoutStatus = {}; |
|
|
this.started = false; |
|
|
this.started = false; |
|
|
|
|
|
|
|
|
|
|
|
this.state = "disconnected"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async connect() { |
|
|
async connect() { |
|
@ -34,11 +36,9 @@ class IConsoleDriver { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
get state() { |
|
|
|
|
|
return this.client.state; |
|
|
|
|
|
|
|
|
this.state = this.client.state; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async start() { |
|
|
async start() { |
|
|