Skip to content

Commit

Permalink
Remove incorrect warning message (#661)
Browse files Browse the repository at this point in the history
* Remove incorrect warning message

* Fix typo
  • Loading branch information
dnicolson authored Jan 29, 2023
1 parent 694bb96 commit ba1e9a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/device/curtain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ export class Curtain {
this.scanDuration = this.updateRate;
if (this.BLE) {
this.warnLog(`${this.device.deviceType}: `
+ `${this.accessory.displayName} scanDuration is less then updateRate, overriding scanDuration with updateRate`);
+ `${this.accessory.displayName} scanDuration is less than updateRate, overriding scanDuration with updateRate`);
}
} else {
this.scanDuration = this.accessory.context.scanDuration = device.scanDuration;
Expand All @@ -965,10 +965,6 @@ export class Curtain {
} else {
if (this.updateRate > 1) {
this.scanDuration = this.updateRate;
if (this.BLE) {
this.warnLog(`${this.device.deviceType}: `
+ `${this.accessory.displayName} scanDuration is less then updateRate, overriding scanDuration with updateRate`);
}
} else {
this.scanDuration = this.accessory.context.scanDuration = 1;
}
Expand Down

0 comments on commit ba1e9a4

Please sign in to comment.