Fixed boundary cleaning

This commit is contained in:
Arne 2019-09-19 12:10:17 +02:00
parent 150b8973ee
commit 8822670f9b
2 changed files with 3 additions and 3 deletions

View File

@ -256,7 +256,7 @@ NeatoVacuumRobotAccessory.prototype = {
}); });
}, },
clean: function (callback, boundaryId) clean: function (callback, boundary)
{ {
// Start automatic update while cleaning // Start automatic update while cleaning
if (this.refresh === 'auto') if (this.refresh === 'auto')

View File

@ -1,5 +1,5 @@
"use strict"; "use strict";
var inherits = require('util').inherits, let inherits = require('util').inherits,
debug = require('debug')('homebridge-neato'), debug = require('debug')('homebridge-neato'),
botvac = require('node-botvac'), botvac = require('node-botvac'),
@ -143,7 +143,7 @@ NeatoVacuumRobotPlatform.prototype = {
map.boundaries = result.boundaries; map.boundaries = result.boundaries;
} }
processedMapCount++; processedMapCount++;
if (processedMapCount == robot.maps.length) if (processedMapCount === robot.maps.length)
{ {
updatedRobotCount++; updatedRobotCount++;
if (updatedRobotCount === that.robots.length) if (updatedRobotCount === that.robots.length)