mirror of
https://github.com/gwm17/Specter.git
synced 2024-11-22 18:28:52 -05:00
Fix bug in evaluating size of nscldaq data buffer and type mask of MesyTec unpacker
This commit is contained in:
parent
d34f5d676b
commit
8f9dcf2914
|
@ -37,7 +37,7 @@ namespace Specter {
|
|||
void CharonOnlineSource::UnpackRawBuffer()
|
||||
{
|
||||
uint32_t* iter = (uint32_t*) m_rawBuffer.data();
|
||||
uint32_t* end = iter + m_rawBuffer.size();
|
||||
uint32_t* end = iter + m_rawBuffer.size() / sizeof(uint32_t);
|
||||
bool wasUnpacked = false;
|
||||
|
||||
UnpackerResult result;
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Specter {
|
|||
|
||||
virtual void UnpackDatum(uint32_t* word) override;
|
||||
|
||||
static constexpr uint32_t s_typeMask = 0xc000000;
|
||||
static constexpr uint32_t s_typeMask = 0xc0000000;
|
||||
static constexpr uint32_t s_typeHeader = 0x40000000;
|
||||
static constexpr uint32_t s_typeBody = 0x00000000;
|
||||
static constexpr uint32_t s_typeEnd = 0xc0000000;
|
||||
|
|
Loading…
Reference in New Issue
Block a user