| | |
| | | // process start |
| | | for (int p = 0; p < 4; p++) { |
| | | if (bProcessStart[p]) { |
| | | pPorts[p]->sendCassetteCtrlCmd(CCC_PROCESS_START, nullptr, 0, 0, 0, nullptr, nullptr); |
| | | if (pPorts[p] == nullptr) continue; |
| | | short jobExistence[12] = { 0 }; |
| | | short slotProcess = 0; |
| | | const short scanMap = pPorts[p]->getScanCassetteMap(); |
| | | if (scanMap != 0) { |
| | | jobExistence[0] = scanMap; |
| | | slotProcess = scanMap; |
| | | } |
| | | |
| | | bool hasExistence = false; |
| | | for (short w : jobExistence) { |
| | | if (w != 0) { hasExistence = true; break; } |
| | | } |
| | | if (!hasExistence) { |
| | | LOGE("ProcessStart blocked (ControlJob): no JobExistence map (port=%d, portStatus=%d, scanMap=%d).", |
| | | p + 1, pPorts[p]->getPortStatus(), scanMap); |
| | | continue; |
| | | } |
| | | pPorts[p]->sendCassetteCtrlCmd(CCC_PROCESS_START, jobExistence, 12, slotProcess, 0, nullptr, nullptr); |
| | | Sleep(100); |
| | | } |
| | | } |