[WIP] stop recording / fifo - tmp save

parent a7ac1e52
......@@ -35,11 +35,12 @@ enum pcoAcqStatus {
pcoAcqStart,
pcoAcqRecordStart,
pcoAcqRecordEnd,
pcoAcqRecordStop,
pcoAcqRecordTimeout,
pcoAcqTransferStart,
pcoAcqTransferEnd,
pcoAcqStop,
pcoAcqTransferStop,
pcoAcqRecordTimeout,
pcoAcqWaitTimeout,
pcoAcqWaitError,
pcoAcqError,
......
......@@ -1036,6 +1036,8 @@ int BufferCtrlObj::_xferImag()
m_cam->_pco_GetSizes(&_wArmWidth, &_wArmHeight, &_wMaxWidth, &_wMaxHeight, error);
m_cam->getBitsPerPixel(_wBitPerPixel);
m_cam->_pco_SetRecordingState(0, error);
bufIdx = 0;
SHORT sBufNr = m_allocBuff.pcoAllocBufferNr[bufIdx];
......@@ -1063,7 +1065,7 @@ int BufferCtrlObj::_xferImag()
sBufNr, _wArmWidth, _wArmHeight, _wBitPerPixel, error);
int xferRet = _xferImag_buff2lima(dwFrameIdx, bufIdx);
if(xferRet == pcoAcqStop) goto _EXIT_STOP;
//if(xferRet == pcoAcqStop) goto _EXIT_STOP;
} //for(dwImgIdx = dwFirstImg;
......@@ -1089,6 +1091,13 @@ int BufferCtrlObj::_xferImag()
DEB_ALWAYS() << m_cam->_sprintComment(false, fnId, "[EXIT]");
if(bReadRAM)
{
return pcoAcqRecordStop;
}
return pcoAcqTransferEnd;
_EXIT_STOP:
......
......@@ -625,7 +625,8 @@ void SyncCtrlObj::getStatus(HwInterface::StatusType& status)
status.acq = AcqRunning;
status.det = DetIdle;
break;
case pcoAcqRecordStop:
case pcoAcqRecordTimeout:
case pcoAcqWaitTimeout:
case pcoAcqWaitError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment