Merge pull request #45 from icanos/dev

bug fix
This commit is contained in:
Marcus Westin 2020-01-18 17:07:17 +01:00 committed by GitHub
commit 39aa93c3a0
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) { if (!uuid) {
this.sortedDevices = Object.values(this.devices).sort((a, b) => b.rssi - a.rssi); sortedDevices = Object.values(this.devices).sort((a, b) => b.rssi - a.rssi);
this.device = sortedDevices[this.deviceIdx]; this.device = sortedDevices[this.deviceIdx];
} }
else { else {