mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
ch347jtag: drop unused sync_cb
This commit is contained in:
+1
-6
@@ -49,11 +49,6 @@ enum CH347JtagSig {
|
||||
SIG_TDI = 0b10000,
|
||||
};
|
||||
|
||||
static void LIBUSB_CALL sync_cb(struct libusb_transfer *transfer) {
|
||||
int *complete = (int *)transfer->user_data;
|
||||
*complete = 1;
|
||||
}
|
||||
|
||||
// defer should only be used with rlen == 0
|
||||
|
||||
int CH347Jtag::usb_xfer(unsigned wlen, unsigned rlen, unsigned *ract, bool defer)
|
||||
@@ -429,4 +424,4 @@ int CH347Jtag::writeTDI(const uint8_t *tx, uint8_t *rx, uint32_t len, bool end)
|
||||
}
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user