Fix drainage pumb to valve.
This commit is contained in:
@@ -780,7 +780,7 @@ void DeviceManager::processShutDownDms(const QString& aResponse)
|
||||
void DeviceManager::shutdownOperationSystem()
|
||||
{
|
||||
qDebug()<< "shut down OS";
|
||||
//QProcess::startDetached("shutdown", QStringList() << "-h" << "now");
|
||||
//QProcess::startDetached("shutdown", QStringList() << "-h" << "now");
|
||||
}
|
||||
|
||||
void DeviceManager::insertEmptyScanRecord()
|
||||
@@ -1094,7 +1094,7 @@ bool DeviceManager::getCEStatus()
|
||||
|
||||
void DeviceManager::controlDrainage(const QString& aCode)
|
||||
{
|
||||
mPumpControlAction->setSendData(QString("{\"pumb\":%1}").arg(aCode));
|
||||
mPumpControlAction->setSendData(QString("{\"valve\":%1}").arg(aCode));
|
||||
if(!mPumpControlAction->execute())
|
||||
{
|
||||
emit startPumpControlResult(false);
|
||||
|
||||
Reference in New Issue
Block a user