From 29824f4743f8ec19c7cda0db9b75b8c676fb7864 Mon Sep 17 00:00:00 2001 From: weidong Date: Thu, 15 Feb 2024 22:16:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E6=96=AD=E7=82=B9?= =?UTF-8?q?=E7=BB=AD=E4=BC=A0=E7=BB=9F=E8=AE=A1=202=E3=80=81=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=B6=88=E6=81=AF=E6=8C=89=E7=B1=BB=E5=9E=8B=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/imdroid/beidou_fwd/task/SaasForwarder.java | 7 ++++--- .../imdroid/sideslope/service/DataPersistServiceImpl.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/task/SaasForwarder.java b/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/task/SaasForwarder.java index 14486151..40deecfe 100644 --- a/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/task/SaasForwarder.java +++ b/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/task/SaasForwarder.java @@ -117,12 +117,13 @@ public class SaasForwarder extends Forwarder{ boolean checkResult() throws InterruptedException { // 等待应答,最多等1s - for(int i=0; i<10; i++){ + /*for(int i=0; i<10; i++){ Thread.sleep(100); if(listener.state == MyTCPListener.STATE_OK) return true; else if(listener.state == MyTCPListener.STATE_FAILED) return false; - } - return false; + }*/ + Thread.sleep(100); + return true; } } diff --git a/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/service/DataPersistServiceImpl.java b/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/service/DataPersistServiceImpl.java index 70a45884..a2db2936 100644 --- a/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/service/DataPersistServiceImpl.java +++ b/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/service/DataPersistServiceImpl.java @@ -139,6 +139,6 @@ public class DataPersistServiceImpl implements DataPersistService { public void saveD342Stat(D342LocationMessage message, Device device){ saveMsg(message, "d342 num:"+device.getD342Count()+ ", bytes:"+device.getD342Bytes()+ - ", total d341 num:"+device.getD341In42Count()+"session done"); + ", total d341 num:"+device.getD341In42Count()+", session done"); } }