]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] fix printed zone clean command (#9865)
authorMarcel <marcel@verpaalen.com>
Mon, 18 Jan 2021 20:24:14 +0000 (21:24 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Jan 2021 20:24:14 +0000 (12:24 -0800)
as per https://community.openhab.org/t/xiaomi-vacuum-map-viewer-to-find-coordinates-for-zone-cleaning/103500/47

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/RoboMapViewer.java

index a2c588d4f6ecbeb20023c3750b94bf15eaefe262..59555bfb1aacd250b90c66a060ec7c9094105c4a 100644 (file)
@@ -170,7 +170,7 @@ public class RoboMapViewer extends JFrame {
                         double minY = Math.min(fromLocation.getY(), endLocation.getY());
                         double maxY = Math.max(fromLocation.getY(), endLocation.getY());
                         textArea.append(String.format(
-                                "Zone coordinates:\t%s, %s\t\tZone clean command:  app_zone_clean[[ %.0f,%.0f,%.0f,%.0f,1 ]]\r\n",
+                                "Zone coordinates:\t%s, %s\t\tZone clean command:  app_zoned_clean[[ %.0f,%.0f,%.0f,%.0f,1 ]]\r\n",
                                 endLocation, fromLocation, minX, minY, maxX, maxY));
                     } else {
                         final MapPoint pointLocation = MapCoordstoRoboCoords(localCoordtoMapCoords(e.getPoint()));