mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 23:37:54 +00:00
Add an ftdi usb read macro without newline
This commit is contained in:
parent
8e117050e3
commit
e53040ca4d
@ -183,6 +183,9 @@ void usb_initialise();
|
|||||||
#define usb_write_ep_timeout(cgpu, ep, buf, bufsiz, wrote, timeout, cmd) \
|
#define usb_write_ep_timeout(cgpu, ep, buf, bufsiz, wrote, timeout, cmd) \
|
||||||
_usb_write(cgpu, ep, buf, bufsiz, wrote, timeout, cmd)
|
_usb_write(cgpu, ep, buf, bufsiz, wrote, timeout, cmd)
|
||||||
|
|
||||||
|
#define usb_ftdi_read(cgpu, buf, bufsiz, read, cmd) \
|
||||||
|
_usb_read(cgpu, DEFAULT_EP_IN, buf, bufsiz, read, DEVTIMEOUT, NULL, cmd, true)
|
||||||
|
|
||||||
#define usb_ftdi_read_nl(cgpu, buf, bufsiz, read, cmd) \
|
#define usb_ftdi_read_nl(cgpu, buf, bufsiz, read, cmd) \
|
||||||
_usb_read(cgpu, DEFAULT_EP_IN, buf, bufsiz, read, DEVTIMEOUT, "\n", cmd, true)
|
_usb_read(cgpu, DEFAULT_EP_IN, buf, bufsiz, read, DEVTIMEOUT, "\n", cmd, true)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user