Skip to content

Commit cfaccc1

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

targets/chip/max32625/io/usb.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,9 @@ namespace klib::max32625::io {
807807
auto *const ep = get_endpoint_ptr(endpoint);
808808

809809
// return if the endpoint is not disabled
810-
return ((*ep) & 0x3) != endpoint_mode_to_raw(klib::usb::usb::endpoint_mode::disabled);
810+
return ((*ep) & 0x3) != endpoint_mode_to_raw(
811+
klib::usb::usb::endpoint_mode::disabled, klib::usb::descriptor::transfer_type::in
812+
);
811813
}
812814

813815
/**

0 commit comments

Comments
 (0)