Fix: setupStep sequence

This commit is contained in:
Siegfried Siegert 2024-07-25 15:34:47 +02:00
parent 492d30aaf0
commit 433af98de7
Signed by untrusted user: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -114,7 +114,7 @@ void CArun::chainControl(void)
case SETUP_STEP::OPEN_SERIAL_PORT: case SETUP_STEP::OPEN_SERIAL_PORT:
qCritical() << "CArun: SETUP_STEP::OPEN_SERIAL_PORT"; qCritical() << "CArun: SETUP_STEP::OPEN_SERIAL_PORT";
this->openSerialPort(); this->openSerialPort();
this->setupStep = SETUP_STEP::CHECK_VALID_DATA; this->setupStep = SETUP_STEP::TEST_OPEN_PORT;
this->timerChainCtrl->start(); this->timerChainCtrl->start();
break; break;
case SETUP_STEP::TEST_OPEN_PORT: case SETUP_STEP::TEST_OPEN_PORT:
@ -151,7 +151,7 @@ void CArun::chainControl(void)
this->HWaccess->dc_autoRequest(1); this->HWaccess->dc_autoRequest(1);
this->setupStep = SETUP_STEP::CHECK_VALID_DATA; this->setupStep = SETUP_STEP::CHECK_VALID_DATA;
this->timerChainCtrl->start(); this->timerChainCtrl->start(2000);
break; break;
case SETUP_STEP::CHECK_VALID_DATA: case SETUP_STEP::CHECK_VALID_DATA:
qCritical() << "CArun: SETUP_STEP::CHECK_VALID_DATA"; qCritical() << "CArun: SETUP_STEP::CHECK_VALID_DATA";