Fixed boundary cleaning
This commit is contained in:
parent
150b8973ee
commit
8822670f9b
@ -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')
|
||||||
|
4
index.js
4
index.js
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user