whychdw
2019-11-28 fe8ff166e285b3fdd117a5f75d288bc068bb92d3
platforms/android/app/src/main/java/com/socket/BattDataThread.java
@@ -146,7 +146,6 @@
    public void run() {
        Log.e(TAG, "run: battindex"+battIndex +"\t start at "+ Com.getDateTimeFormat(new Date(),Com.DTF_YMDhms));
        Date nowTime = new Date();                  //当前时间
        int monRCount = 0;                          //单体读取
        int runCount = 0;                           //执行次数
        while(true){
@@ -166,7 +165,7 @@
                            readSystemState("");
                        }
                        if(runCount % 20 == 0){
                        if(runCount % 25 == 0){
                            int maxCount = (int)Math.ceil((double)state.monCount/100);              //最多需要读取次数
                            int monindex = monRCount % maxCount;                                     //单体索引
                            //读取单体电压
@@ -190,7 +189,6 @@
                }else{
                    isOutTime = false;
                }
                sleep(200);
            } catch (Exception e) {
                e.printStackTrace();