Commit 2d50838d authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Eiger2: force LZ4 compression for stream interface and BSLZ4 for filewriter

parent a2b4c165
......@@ -95,9 +95,13 @@ void Interface::reset(ResetLevel reset_level)
void Interface::prepareAcq()
{
DEB_MEMBER_FUNCT();
m_stream->setActive(!m_saving->isActive());
m_decompress->setActive(!m_saving->isActive());
bool use_filewriter = m_saving->isActive();
m_stream->setActive(!use_filewriter);
m_decompress->setActive(!use_filewriter);
Camera::CompressionType c = use_filewriter ? Camera::BSLZ4 : Camera::LZ4;
m_cam.setCompressionType(c);
m_cam.prepareAcq();
int serie_id; m_cam.getSerieId(serie_id);
m_saving->setSerieId(serie_id);
......
Supports Markdown
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