This commit is contained in:
2021-12-21 17:37:48 +08:00
parent 2ab5c91d76
commit fbb1597bb5
7 changed files with 46 additions and 33 deletions

View File

@ -57,14 +57,18 @@ void Scheduler::StartAsPlanned()
int Scheduler::OnTimeCounter()
{
QTime qtTime = QTime::currentTime();
if (m_struAcqTime.qtStartTime <= qtTime && qtTime < m_struAcqTime.qtStopTime)
{
return 1;
qDebug() << "Non working time. Idling......";
qDebug() << "it's time to work...work work.";
emit SignalGrabOnce();
return 0;
}
else
{
system("gpio write 1 0");//<2F><EFBFBD>ϵ<EFBFBD>
qDebug() << "gpio write 1 0......"<<endl;
qDebug() << "Non working time. Idling......";
return 0;
}
emit SignalGrabOnce();
return 0;
}