|
@@ -654,8 +654,12 @@ void CoreObject::time_out()
|
|
|
isWorking = true;
|
|
|
if(synchour!=t.time().hour())
|
|
|
chkPhoneList();
|
|
|
+ t = QDateTime::currentDateTime();
|
|
|
+ ytShm->workingTime[0] = t.toTime_t();
|
|
|
for(int i=0;i<DEVICES_COUNT;i++){
|
|
|
if(ytShm->eHomeDevice[i].Inited==0x01){
|
|
|
+ t = QDateTime::currentDateTime();
|
|
|
+ ytShm->workingTime[0] = t.toTime_t();
|
|
|
if(ytShm->eHomeDevice[i].Connected==0x00){
|
|
|
if(ytShm->eHomeDevice[i].io[8]==0x01)
|
|
|
ytShm->eHomeDevice[i].io[0] = 0x01;
|
|
@@ -829,6 +833,8 @@ void CoreObject::time_out()
|
|
|
if(reportList.length()>0){
|
|
|
if(db.open()){
|
|
|
while (reportList.length()>0) {
|
|
|
+ t = QDateTime::currentDateTime();
|
|
|
+ ytShm->workingTime[0] = t.toTime_t();
|
|
|
QString phonelist = "";
|
|
|
Alarm_Report rep = reportList.first();
|
|
|
appendLog(QString("[ %1 sql ] %2").arg(t.toString("yyyy-MM-dd HH:mm:ss")).arg(rep.Sql));
|