Skip to content

Commit 6d86c45

Browse files
committed
max32625 bugfix missed endpoint_mode_to_raw call change
1 parent 5050bd3 commit 6d86c45

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

targets/chip/max32625/io/usb.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,11 @@ namespace klib::max32625::io {
806806
// get the endpoint pointer
807807
auto *const ep = get_endpoint_ptr(endpoint);
808808

809-
// return if the endpoint is not disabled
810-
return ((*ep) & 0x3) != endpoint_mode_to_raw(klib::usb::usb::endpoint_mode::disabled);
809+
// return if the endpoint is not disabled (random transfer type here, not needed
810+
// in the endpoint_mode_to_raw function except for the control endpoint)
811+
return ((*ep) & 0x3) != endpoint_mode_to_raw(
812+
klib::usb::usb::endpoint_mode::disabled, klib::usb::descriptor::transfer_type::interrupt
813+
);
811814
}
812815

813816
/**

0 commit comments

Comments
 (0)