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:
parent
c61b632aac
commit
85d982f108
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user