Skip to content

Commit 7ada005

Browse files
dgoodladCryowatt
authored andcommitted
Reverse the even/odd frame numbering?
1 parent 6bc9dc4 commit 7ada005

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
@@ -152,7 +152,7 @@ impl EndpointIn {
152152
EndpointType::Isochronous(_) => {
153153
// Previous frame number is OTG_DSTS.FNSOF
154154
let frame_number = read_reg!(otg_device, device, DSTS, FNSOF);
155-
if frame_number & 0x1 == 1 {
155+
if frame_number & 0x1 == 0 {
156156
// Previous frame number is odd, so upcoming frame is even
157157
modify_reg!(endpoint_in, ep, DIEPCTL, SD0PID_SEVNFRM: 1);
158158
} else {

0 commit comments

Comments
 (0)