Driver: DXX: Update libredxx for FT260 support

This commit is contained in:
Nicholas Zamora
2025-12-16 11:05:11 -05:00
committed by Kyle Schwarz
parent d6d9fc16ef
commit 5288385495
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ void DXX::read() {
while(!isDisconnected() && !isClosing()) {
size_t received = buffer.size();
const auto status = libredxx_read(device, buffer.data(), &received);
const auto status = libredxx_read(device, buffer.data(), &received, LIBREDXX_ENDPOINT_A);
if(isDisconnected() || isClosing()) {
return;
}
@@ -186,7 +186,7 @@ void DXX::write() {
for(size_t totalWritten = 0; totalWritten < writeOp.bytes.size();) {
size_t size = writeOp.bytes.size() - totalWritten;
const auto status = libredxx_write(device, &writeOp.bytes[totalWritten], &size);
const auto status = libredxx_write(device, &writeOp.bytes[totalWritten], &size, LIBREDXX_ENDPOINT_A);
if(isDisconnected() || isClosing()) {
return;
}