Skip to content

Commit c615907

Browse files
authored
Merge pull request #29 from ia0/fix
Fix enumeration on windows
2 parents 7a0ab87 + 8ddc8d3 commit c615907

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! USB peripheral driver for nRF microcontrollers.
22
33
#![no_std]
4+
#![allow(mismatched_lifetime_syntaxes)] // TODO: Remove in follow-up PR.
45

56
mod errata;
67
mod pac;

src/usbd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ impl<T: UsbPeripheral> UsbBus for Usbd<T> {
650650
// reset the state
651651
state.in_transfer_state = TransferState::NoTransfer;
652652
ep0_state.set(state);
653+
busy_in_endpoints.update(|x| x & !1);
653654
}
654655
}
655656
}

0 commit comments

Comments
 (0)