修复了程序在启动时偶尔崩溃的问题
This commit is contained in:
@@ -55,6 +55,10 @@ PowerManger::PowerManger()
|
||||
m_subDisSysCmd = {};
|
||||
m_subDisSysState = {};
|
||||
m_subDisSysFault = {};
|
||||
|
||||
//初始化系统数据
|
||||
m_systemData = new SystemData();
|
||||
|
||||
//初始化控制指令
|
||||
initControlCmd();
|
||||
|
||||
@@ -70,9 +74,6 @@ PowerManger::PowerManger()
|
||||
m_db = new SQLite("power_data.db");
|
||||
m_db->createTable();
|
||||
|
||||
//初始化系统数据
|
||||
m_systemData = new SystemData();
|
||||
|
||||
//初始化http服务器
|
||||
m_httpServer = new HttpServer(8090);
|
||||
m_httpServer->setPowerManger(this);
|
||||
|
||||
Reference in New Issue
Block a user