[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 <marcel@verpaalen.com>
This commit is contained in:
Marcel 2021-01-18 21:24:14 +01:00 committed by GitHub
parent fe32f91f38
commit 155e3b770d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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()));