Sfoglia il codice sorgente

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 anni fa
parent
commit
92873d0f37
2 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. +3
    -3
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java
  2. +2
    -2
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstTimeAsyncTaskServiceImpl.java

+ 3
- 3
src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java Vedi File

@@ -242,10 +242,10 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
astTimeCmd += HexConvert.encodeHEX(lanLongValue);
astTimeCmd += HexConvert.encodeHEX(altLongValue);

String hexIn = HexConvert.convertStringToHex(astTimeCmd) + HexConvert.makeChecksum(astTimeCmd);
//String hexIn = HexConvert.convertStringToHex(astTimeCmd) + HexConvert.makeChecksum(astTimeCmd);

String hexIn = astTimeCmd + HexConvert.makeChecksum(astTimeCmd);

//String sendResult = client.sendCmd(hexIn, ackAckCheckRef);
//client.closeConnection();

//return sendResult;
return hexIn;


+ 2
- 2
src/main/java/com/telpo/dipperposition/service/impl/DipperAstTimeAsyncTaskServiceImpl.java Vedi File

@@ -95,8 +95,8 @@ public class DipperAstTimeAsyncTaskServiceImpl implements IDipperAstTimeAsyncTas
astTimeCmd += "0000000000";
astTimeCmd += "00286BEE";

String hexIn = HexConvert.convertStringToHex(astTimeCmd) + HexConvert.makeChecksum(astTimeCmd);
//String hexIn = HexConvert.convertStringToHex(astTimeCmd) + HexConvert.makeChecksum(astTimeCmd);
String hexIn = astTimeCmd + HexConvert.makeChecksum(astTimeCmd);
//String ackAckCheckRef = "233E0101020004020A1D";
//String sendResult = client.sendCmd(hexIn, ackAckCheckRef);
//client.closeConnection();


Loading…
Annulla
Salva