Merge pull request #3748 from Volkalex28/fix_usb

Fix unsupported trace! call for EndpointAddress
This commit is contained in:
Dario Nieuwenhuis 2025-01-09 14:51:02 +01:00 committed by GitHub
commit 92326f10b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -638,7 +638,7 @@ impl<'d, T: Instance> driver::Bus for Bus<'d, T> {
}
fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool) {
trace!("set_enabled {:x} {}", ep_addr, enabled);
trace!("set_enabled {:?} {}", ep_addr, enabled);
// This can race, so do a retry loop.
let reg = T::regs().epr(ep_addr.index() as _);
trace!("EPR before: {:04x}", reg.read().0);