Skip to content
Snippets Groups Projects
Commit 85fc6f46 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Merge branch 'usb3' of github.com:open-ephys/GUI into usb3

Conflicts:
	Source/Processors/DataThreads/rhythm-api/rhd2000evalboard.cpp
parents 09d94968 3ee64546
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ void Rhd2000DataBlock::fillFromUsbBuffer(unsigned char usbBuffer[], int blockInd
ttlOut[t] = convertUsbWord(usbBuffer, index);
index += 2;
}
cout << "Read " << num << " valid samples with " << numDataStreams << " streams. Usb mode status: " << usb3 << endl;
//cout << "Read " << num << " valid samples with " << numDataStreams << " streams. Usb mode status: " << usb3 << endl;
}
// Print the contents of RHD2000 registers from a selected USB data stream (0-7)
......
......@@ -1424,19 +1424,18 @@ bool Rhd2000EvalBoard::readDataBlock(Rhd2000DataBlock *dataBlock, int nSamples)
if (usb3)
{
// std::cout << "usb3 read : " << numBytesToRead << " in " << USB3_BLOCK_SIZE << " blocks" << std::endl;
//std::cout << "usb3 read : " << numBytesToRead << " in " << USB3_BLOCK_SIZE << " blocks" << std::endl;
res = dev->ReadFromBlockPipeOut(PipeOutData, USB3_BLOCK_SIZE, numBytesToRead, usbBuffer);
}
else
{
// std::cout << "usb2 read: " << numBytesToRead << std::endl;
//std::cout << "usb2 read: " << numBytesToRead << std::endl;
res = dev->ReadFromPipeOut(PipeOutData, numBytesToRead, usbBuffer);
}
if (res == ok_Timeout)
{
cerr << "CRITICAL: Timeout on pipe read. Check block and buffer sizes." << endl;
}
//std::cout << "read result: " << res << std::endl;
dataBlock->fillFromUsbBuffer(usbBuffer, 0, numDataStreams, nSamples);
return true;
......
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