ch347jtag: drop unused sync_cb
This commit is contained in:
parent
8ed388ca1c
commit
6dc2e752f4
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue