X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Funi-t-ut32x%2Fprotocol.h;h=1a1cf1f5baa7612e331ffb1e446492e30b126d25;hp=8513117cba92edf0e1402951620376dc58430c65;hb=55462b8ba9f48931de9b9a7bfbc182a1d113b3b5;hpb=155b680da482cea2381becb73c51cfb838bff31e diff --git a/src/hardware/uni-t-ut32x/protocol.h b/src/hardware/uni-t-ut32x/protocol.h index 8513117c..1a1cf1f5 100644 --- a/src/hardware/uni-t-ut32x/protocol.h +++ b/src/hardware/uni-t-ut32x/protocol.h @@ -34,7 +34,7 @@ #define USB_INTERFACE 0 #define USB_CONFIGURATION 1 -#define EP_IN 0x80 | 2 +#define EP_IN (0x80 | 2) #define EP_OUT 2 enum { @@ -66,6 +66,6 @@ struct dev_context { }; SR_PRIV int uni_t_ut32x_handle_events(int fd, int revents, void *cb_data); -SR_PRIV void uni_t_ut32x_receive_transfer(struct libusb_transfer *transfer); +SR_PRIV void LIBUSB_CALL uni_t_ut32x_receive_transfer(struct libusb_transfer *transfer); #endif