We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5050bd3 commit 6d86c45Copy full SHA for 6d86c45
1 file changed
targets/chip/max32625/io/usb.hpp
@@ -806,8 +806,11 @@ namespace klib::max32625::io {
806
// get the endpoint pointer
807
auto *const ep = get_endpoint_ptr(endpoint);
808
809
- // return if the endpoint is not disabled
810
- return ((*ep) & 0x3) != endpoint_mode_to_raw(klib::usb::usb::endpoint_mode::disabled);
+ // return if the endpoint is not disabled (random transfer type here, not needed
+ // 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
+ );
814
}
815
816
/**
0 commit comments