Skip to content

Commit

Permalink
fix(vacuum.roborock): Don't multiply iterations by 10 to fix #573
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jul 30, 2020
1 parent 8b06203 commit f3cc935
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/devices/Roborock.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,7 @@ class Roborock extends MiioVacuum {
}

/**
* @param {Array<Array<number>>} zones is an array of areas to clean: [[x1, y1, x2, y2,
* iterations],..]
* @param {Array<Array<number>>} zones is an array of areas to clean: [[x1, y1, x2, y2, iterations],..]
*/
async startCleaningZoneByCoords(zones) {
if (Array.isArray(zones) && zones.length <= 5) {
Expand All @@ -694,7 +693,7 @@ class Roborock extends MiioVacuum {
RRMapParser.DIMENSION_MM - zone[1] * 10,
zone[2] * 10,
RRMapParser.DIMENSION_MM - zone[3] * 10,
zone[4] * 10
zone[4]
];

// it seems as the vacuum only works with 'positive rectangles'! So flip the coordinates if the user entered them wrong.
Expand Down

0 comments on commit f3cc935

Please sign in to comment.