diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2016-07-08 23:20:16 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2016-07-08 23:22:53 +0200 |
commit | e61ed66174df0bf889586c757aa6a9d23d9401c0 (patch) | |
tree | 7b7b2d030f94fa2967d8ac960ae450e4fe8bfc5f /src/usbh_driver_ac_midi.c | |
parent | 27fe98f2d60d28153dfc10452b40664fc1e2ac66 (diff) | |
download | secure-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_ac_midi.c')
-rw-r--r-- | src/usbh_driver_ac_midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usbh_driver_ac_midi.c b/src/usbh_driver_ac_midi.c index 65c7617..c5403d2 100644 --- a/src/usbh_driver_ac_midi.c +++ b/src/usbh_driver_ac_midi.c @@ -246,7 +246,7 @@ static void read_midi_in(void *drvdata, const uint8_t nextstate) packet.datalen = midi->endpoint_in_maxpacketsize; packet.endpoint_address = midi->endpoint_in_address; packet.endpoint_size_max = midi->endpoint_in_maxpacketsize; - packet.endpoint_type = USBH_EPTYP_BULK; + packet.endpoint_type = USBH_ENDPOINT_TYPE_BULK; packet.speed = midi->usbh_device->speed; packet.callback = event; packet.callback_arg = midi->usbh_device; @@ -367,7 +367,7 @@ void usbh_midi_write(uint8_t device_id, const void *data, uint32_t length, midi_ midi->write_packet.address = dev->address; midi->write_packet.endpoint_address = midi->endpoint_out_address; midi->write_packet.endpoint_size_max = midi->endpoint_out_maxpacketsize; - midi->write_packet.endpoint_type = USBH_EPTYP_BULK; + midi->write_packet.endpoint_type = USBH_ENDPOINT_TYPE_BULK; midi->write_packet.speed = dev->speed; midi->write_packet.callback = write_callback; midi->write_packet.callback_arg = midi->usbh_device; |