Skip to content

Commit 62a0b0d

Browse files
committed
Back to what's right
1 parent 77c24ec commit 62a0b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl EndpointIn {
150150
EndpointType::Isochronous(_) => {
151151
// Previous frame number is OTG_DSTS.FNSOF
152152
let frame_number = read_reg!(otg_device, device, DSTS, FNSOF);
153-
if frame_number & 0x1 == 0 {
153+
if frame_number & 0x1 == 1 {
154154
// Previous frame number is odd, so upcoming frame is even
155155
modify_reg!(endpoint_in, ep, DIEPCTL, SD0PID_SEVNFRM: 1);
156156
} else {

0 commit comments

Comments
 (0)