Skip to content
Snippets Groups Projects
Commit 99c44884 authored by whooie's avatar whooie
Browse files
didn't pull before pushing
parents c61643c4 9d40fdba
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ void ArrayWaveform::bindBuffer(int64_t bytes) { ...@@ -199,7 +199,7 @@ void ArrayWaveform::bindBuffer(int64_t bytes) {
void ArrayWaveform::unbindBuffer() { void ArrayWaveform::unbindBuffer() {
if (this->dataLen != 0 and this->pDataBuffer != nullptr) { if (this->dataLen != 0 and this->pDataBuffer != nullptr) {
munmap(this->pDataBuffer, this->dataLen); munmap(this->pDataBuffer, this->dataLen * 2);
this->pDataBuffer = nullptr; this->pDataBuffer = nullptr;
this->dataLen = 0; this->dataLen = 0;
} }
......
...@@ -51,7 +51,7 @@ int main() { ...@@ -51,7 +51,7 @@ int main() {
awg.writeSeqModeSegment( awg.writeSeqModeSegment(
1, 1,
wfmData.first, wfmData.first,
wfmData.second wfmData.second * 2
); // load wfms onto both memory segements for simplicity, ); // load wfms onto both memory segements for simplicity,
// a memory segment needs only be initialized with data // a memory segment needs only be initialized with data
// if it is configured as part of the step sequence below // 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