summaryrefslogtreecommitdiff
path: root/src/usbh_driver_gp_xbox.c
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-07-08 23:20:16 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-07-08 23:22:53 +0200
commite61ed66174df0bf889586c757aa6a9d23d9401c0 (patch)
tree7b7b2d030f94fa2967d8ac960ae450e4fe8bfc5f /src/usbh_driver_gp_xbox.c
parent27fe98f2d60d28153dfc10452b40664fc1e2ac66 (diff)
downloadsecure-hid-e61ed66174df0bf889586c757aa6a9d23d9401c0.tar.gz
secure-hid-e61ed66174df0bf889586c757aa6a9d23d9401c0.tar.bz2
secure-hid-e61ed66174df0bf889586c757aa6a9d23d9401c0.zip
refactor: use enum instead of #define: USBH_ENDPOINT_TYPE and USBH_SPEED
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/usbh_driver_gp_xbox.c')
-rw-r--r--src/usbh_driver_gp_xbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usbh_driver_gp_xbox.c b/src/usbh_driver_gp_xbox.c
index ae478ad..d8bb1b2 100644
--- a/src/usbh_driver_gp_xbox.c
+++ b/src/usbh_driver_gp_xbox.c
@@ -330,7 +330,7 @@ static void read_gp_xbox_in(gp_xbox_device_t *gp_xbox)
packet.datalen = gp_xbox->endpoint_in_maxpacketsize;
packet.endpoint_address = gp_xbox->endpoint_in_address;
packet.endpoint_size_max = gp_xbox->endpoint_in_maxpacketsize;
- packet.endpoint_type = USBH_EPTYP_INTERRUPT;
+ packet.endpoint_type = USBH_ENDPOINT_TYPE_INTERRUPT;
packet.speed = gp_xbox->usbh_device->speed;
packet.callback = event;
packet.callback_arg = gp_xbox->usbh_device;