Skip to content

Commit 54f4742

Browse files
committed
Use the right register field on FS peripherals
1 parent 62a0b0d commit 54f4742

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/endpoint.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ impl EndpointIn {
155155
modify_reg!(endpoint_in, ep, DIEPCTL, SD0PID_SEVNFRM: 1);
156156
} else {
157157
// Previous frame number is even, so upcoming frame is odd
158+
#[cfg(feature = "fs")]
159+
modify_reg!(endpoint_in, ep, DIEPCTL, SODDFRM_SD1PID: 1);
160+
#[cfg(feature = "hs")]
158161
modify_reg!(endpoint_in, ep, DIEPCTL, SODDFRM: 1);
159162
}
160163
},

0 commit comments

Comments
 (0)