uprade: Fix warning on pointer sign.
This commit is contained in:
parent
51f91092e7
commit
a0f44e01cc
|
@ -86,7 +86,8 @@ int dfu_getstate(usb_dev_handle *dev, uint16_t iface)
|
|||
do {
|
||||
i = usb_control_msg(dev,
|
||||
USB_ENDPOINT_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
|
||||
DFU_GETSTATE, 0, iface, &state, 1, USB_DEFAULT_TIMEOUT);
|
||||
DFU_GETSTATE, 0, iface, (char*)&state, 1,
|
||||
USB_DEFAULT_TIMEOUT);
|
||||
} while(i == 0);
|
||||
|
||||
if (i > 0)
|
||||
|
|
Loading…
Reference in New Issue