mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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:
parent
fe32f91f38
commit
155e3b770d
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user