From bc1e20c287309ac0954617442d2c999ca4a0644c Mon Sep 17 00:00:00 2001 From: weidong Date: Tue, 2 Sep 2025 16:27:15 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E7=94=B5=E6=B1=A0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/imdroid/beidou/controller/GnssDeviceController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java b/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java index be303118..6374c025 100644 --- a/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java +++ b/sec-beidou/src/main/java/com/imdroid/beidou/controller/GnssDeviceController.java @@ -263,12 +263,14 @@ public class GnssDeviceController extends BasicController{ if(!old_device.getGroup_id().equals(device.getGroup_id())){ device.setSyn(false); } + int changeFlag = device.getChange_flag(); if(diff.contains("has_battery")){ - device.setChange_flag(GnssDevice.PARA_MASK_HAS_BATTERY); + changeFlag |= GnssDevice.PARA_MASK_HAS_BATTERY; } if(diff.contains("voltage_factor")){ - device.setChange_flag(GnssDevice.PARA_MASK_VOLTAGE_FACTOR); + changeFlag |= GnssDevice.PARA_MASK_VOLTAGE_FACTOR; } + device.setChange_flag(changeFlag); num = gnssDeviceMapper.updateById(device); } }