From 155e3b770dbc46617731cdcafde0cceab65cc906 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 18 Jan 2021 21:24:14 +0100 Subject: [PATCH] [miio] fix printed zone clean command (#9865) as per https://community.openhab.org/t/xiaomi-vacuum-map-viewer-to-find-coordinates-for-zone-cleaning/103500/47 Signed-off-by: Marcel Verpaalen --- .../java/org/openhab/binding/miio/internal/RoboMapViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/RoboMapViewer.java b/bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/RoboMapViewer.java index a2c588d4f6e..59555bfb1aa 100644 --- a/bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/RoboMapViewer.java +++ b/bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/RoboMapViewer.java @@ -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()));