严智鑫
2025-11-11 dd348d0ecae2492d0f39c84d22d1c4336c42787f
nglib/src/builder/Manager.java
@@ -5,6 +5,8 @@
import ng.db.DBSession;
import ng.devices.HexUtil;
import org.json.JSONArray;
import toTcp.TcpMain;
import toTcp.gethex;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
@@ -60,6 +62,7 @@
            Manager.mmgr.RunAll();
            //启动标志
            state = true;
            TcpMain.getElectric();
         } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
@@ -212,13 +215,14 @@
      while(true){
         try {
            Thread.sleep(100);
            TcpMain.getElectric();
         } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
         }
      }
         } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
   }