fix a typo

man that would have been a hard bug to track down.
This commit is contained in:
bunnie 2022-09-22 01:27:10 +08:00
parent 8fe4c50373
commit d6b8310495

View file

@ -469,7 +469,7 @@ impl Llio {
}
pub fn usb_int_ena(&mut self, ena: bool) {
let value = if ena {1} else {0};
self.power_csr.rmwf(utra::power::EV_PENDING_USB_ATTACH, value);
self.power_csr.rmwf(utra::power::EV_ENABLE_USB_ATTACH, value);
}
}