fix
This commit is contained in:
parent
32821dfb2a
commit
b75f56043b
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ class PlejdService extends EventEmitter {
|
|||
}
|
||||
|
||||
if (!uuid) {
|
||||
sortedDevices = Object.values(this.devices).sort((a, b) => b.rssi - a.rssi);
|
||||
let sortedDevices = Object.values(this.devices).sort((a, b) => b.rssi - a.rssi);
|
||||
this.device = sortedDevices[this.deviceIdx];
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue