7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-11 23:19:16 +00:00

Update PCIe.cpp

This commit is contained in:
Daniel Vasile 2021-03-25 14:45:56 -04:00
parent c61b632aac
commit 85d982f108

View File

@ -391,7 +391,7 @@ void PCIeLink::Write(ScopeCommand command, void* val) {
for(int i = 0; i < num_buffers; i++) {
Read(preBuff);
for(int q = 0; q < BUFFER_SIZE; q++) {
if(preBuff[i] & 0x80) {
if(preBuff[q] & 0x80) {
//postive
buffers[i][q] = (int)(preBuff[q] & 0x7F);
} else {
@ -420,6 +420,7 @@ void PCIeLink::Write(ScopeCommand command, void* val) {
for(int i = 0; i < num_buffers; i++) {
free(buffers[i]);
}
free(preBuff);
free(buffers);
}
break;