Wording and Bugfixes

* Fixed a bug that refresh is not disabled when set to 0
This commit is contained in:
naofireblade
2017-05-20 19:41:25 +02:00
parent d6dd94979b
commit 56e85c92e0
4 changed files with 8 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ function NeatoVacuumRobot(log, config) {
// must be integer and positive
this.refresh = (typeof this.refresh !=='number' || (this.refresh%1)!==0 || this.refresh < 0) ? 0 : this.refresh;
// minimum 60s
this.refresh = (0 < this.refresh < 60) ? 60 : this.refresh;
this.refresh = (this.refresh > 0 && this.refresh < 60) ? 60 : this.refresh;
this.vacuumRobotCleanService = new Service.Switch(this.name + " Clean", "clean");
this.vacuumRobotGoToDockService = new Service.Switch(this.name + " Go to Dock", "goToDock");