Merge pull request #46 from icanos/dev

fix
This commit is contained in:
Marcus Westin 2020-01-18 19:03:10 +01:00 committed by GitHub
commit ef3738ad33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {