Skip to content
Snippets Groups Projects
Commit 9d40fdba authored by xiyehu2's avatar xiyehu2
Browse files

bugfixing in unbindBuffer in relation to dataLen

parent b521560d
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ void ArrayWaveform::bindBuffer(int64_t bytes) {
void ArrayWaveform::unbindBuffer() {
if (this->dataLen != 0 and this->pDataBuffer != nullptr) {
munmap(this->pDataBuffer, this->dataLen);
munmap(this->pDataBuffer, this->dataLen * 2);
this->pDataBuffer = nullptr;
this->dataLen = 0;
}
......
......@@ -51,7 +51,7 @@ int main() {
awg.writeSeqModeSegment(
1,
wfmData.first,
wfmData.second
wfmData.second * 2
); // load wfms onto both memory segements for simplicity,
// a memory segment needs only be initialized with data
// if it is configured as part of the step sequence below
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment