From de75ec84e295c3f952a200897aa22aa73d7d5867 Mon Sep 17 00:00:00 2001
From: 张世豪 <979909237@qq.com>
Date: 星期一, 15 十二月 2025 19:37:11 +0800
Subject: [PATCH] 新增了串口割草机拖尾和缩放比例保存功能

---
 src/set/Setsys.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/set/Setsys.java b/src/set/Setsys.java
index 2523a0f..7d12a67 100644
--- a/src/set/Setsys.java
+++ b/src/set/Setsys.java
@@ -145,9 +145,12 @@
                 this.idleTrailDurationSeconds = durationSeconds;
                 value = String.valueOf(durationSeconds);
                 break;
+            case "mapScale":
+                // mapScale涓嶉渶瑕佸湪鍐呭瓨涓瓨鍌紝鐩存帴鏇存柊鍒版枃浠�
+                break;
             default:
-                System.err.println("鏈煡鐨勫睘鎬у悕: " + propertyName);
-                return false;
+                // 瀵逛簬鍏朵粬灞炴�э紝涔熷厑璁哥洿鎺ユ洿鏂板埌鏂囦欢锛堜笉鎵撳嵃閿欒锛�
+                break;
         }
 
         // 鏇存柊properties鏂囦欢
@@ -173,7 +176,6 @@
         // 鍐欏洖鏂囦欢
         try (FileOutputStream output = new FileOutputStream(PROPERTIES_FILE)) {
             props.store(output, "Mower Configuration Properties - Updated");
-            System.out.println("灞炴�� " + propertyName + " 宸叉洿鏂颁负: " + value);
             return true;
         } catch (IOException e) {
             System.err.println("鏇存柊灞炴�ф枃浠跺け璐�: " + e.getMessage());

--
Gitblit v1.10.0