| | |
| | | pStep->setName(pszName[m_nIndex]); |
| | | pStep->setWriteSignalDev(0x128 + m_nIndex); |
| | | pStep->setDataDev(dev[m_nIndex]); |
| | | if (addStep(STEP_ID_PROT1_TYPE_AUTO_CHANGE_REPLY + m_nIndex, pStep) != 0) { |
| | | if (addStep(STEP_ID_PROT1_CASSETTE_TYPE_CHANGE_REPLY + m_nIndex, pStep) != 0) { |
| | | delete pStep; |
| | | } |
| | | } |
| | |
| | | { |
| | | char szBuffer[64]; |
| | | for (const auto& slot : config.vecSlot) { |
| | | if (!slot.isEnabled) continue; |
| | | |
| | | int nSlotIndex = slot.nSlotID - 1; |
| | | if (nSlotIndex < 0 || nSlotIndex >= SLOT_MAX) { |
| | | continue; |
| | | } |
| | | |
| | | m_slot[nSlotIndex].enable(); |
| | | |
| | | if (!m_slot[nSlotIndex].isEnable()) continue; |
| | | if (!slot.isEnabled) { |
| | | m_slot[nSlotIndex].setContext(nullptr); |
| | | continue; |
| | | } |
| | | |
| | | CJobDataS js; |
| | | js.setCassetteSequenceNo(getNextCassetteSequenceNo()); |