Scubapro G2: add missed command packet logging
I did the packet logging for the received data side, but forgot to do the same thing on the command transfer side, which makes the debug logs a bit less useful. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8c0ab03706
commit
fcfee82cc8
@ -108,6 +108,8 @@ uwatec_g2_transfer (uwatec_g2_device_t *device, const unsigned char command[], u
|
||||
return DC_STATUS_INVALIDARGS;
|
||||
}
|
||||
|
||||
HEXDUMP (device->base.context, DC_LOGLEVEL_DEBUG, "cmd", command, csize);
|
||||
|
||||
buf[0] = csize;
|
||||
memcpy(buf + 1, command, csize);
|
||||
status = dc_usbhid_write (device->usbhid, buf, csize + 1, &transferred);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user