| | |
| | | short jobExistence[12] = { 0 }; |
| | | short slotProcess = 0; |
| | | BuildCassetteCtrlMaps(port, jobExistence, slotProcess); |
| | | bool hasExistence = false; |
| | | for (short w : jobExistence) { |
| | | if (w != 0) { hasExistence = true; break; } |
| | | } |
| | | if (!hasExistence) { |
| | | LOGE("ProcessStart blocked (P1): no JobExistence map (portStatus=%d, scanMap=%d).", |
| | | port->getPortStatus(), port->getScanCassetteMap()); |
| | | return; |
| | | } |
| | | port->sendCassetteCtrlCmd(CCC_PROCESS_START, jobExistence, 12, slotProcess, 0, nullptr, nullptr); |
| | | |
| | | } |
| | |
| | | short jobExistence[12] = { 0 }; |
| | | short slotProcess = 0; |
| | | BuildCassetteCtrlMaps(port, jobExistence, slotProcess); |
| | | bool hasExistence = false; |
| | | for (short w : jobExistence) { |
| | | if (w != 0) { hasExistence = true; break; } |
| | | } |
| | | if (!hasExistence) { |
| | | LOGE("ProcessStart blocked (P2): no JobExistence map (portStatus=%d, scanMap=%d).", |
| | | port->getPortStatus(), port->getScanCassetteMap()); |
| | | return; |
| | | } |
| | | port->sendCassetteCtrlCmd(CCC_PROCESS_START, jobExistence, 12, slotProcess, 0, nullptr, nullptr); |
| | | } |
| | | |
| | |
| | | short jobExistence[12] = { 0 }; |
| | | short slotProcess = 0; |
| | | BuildCassetteCtrlMaps(port, jobExistence, slotProcess); |
| | | bool hasExistence = false; |
| | | for (short w : jobExistence) { |
| | | if (w != 0) { hasExistence = true; break; } |
| | | } |
| | | if (!hasExistence) { |
| | | LOGE("ProcessStart blocked (P3): no JobExistence map (portStatus=%d, scanMap=%d).", |
| | | port->getPortStatus(), port->getScanCassetteMap()); |
| | | return; |
| | | } |
| | | port->sendCassetteCtrlCmd(CCC_PROCESS_START, jobExistence, 12, slotProcess, 0, nullptr, nullptr); |
| | | } |
| | | |
| | |
| | | short jobExistence[12] = { 0 }; |
| | | short slotProcess = 0; |
| | | BuildCassetteCtrlMaps(port, jobExistence, slotProcess); |
| | | bool hasExistence = false; |
| | | for (short w : jobExistence) { |
| | | if (w != 0) { hasExistence = true; break; } |
| | | } |
| | | if (!hasExistence) { |
| | | LOGE("ProcessStart blocked (P4): no JobExistence map (portStatus=%d, scanMap=%d).", |
| | | port->getPortStatus(), port->getScanCassetteMap()); |
| | | return; |
| | | } |
| | | port->sendCassetteCtrlCmd(CCC_PROCESS_START, jobExistence, 12, slotProcess, 0, nullptr, nullptr); |
| | | } |
| | | |