Skip to content

Commit

Permalink
moondancer: handle PID Data reset on set interface requests in Faceda…
Browse files Browse the repository at this point in the history
…ncer
  • Loading branch information
antoinevg committed Nov 21, 2024
1 parent dfdbb5a commit d2feff0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions firmware/moondancer/src/gcp/moondancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,6 @@ impl Moondancer {
// send ZLP to host to end status stage
self.usb0.ack(endpoint_number, Direction::HostToDevice);
return;
} else if matches!(
(direction, request_type, request),
(
Direction::HostToDevice,
RequestType::Standard,
Request::SetInterface,
)
) {
// reset PID for all endpoints
for endpoint_number in 1..16 {
self.usb0
.clear_feature_endpoint_halt(endpoint_number, Direction::HostToDevice);
self.usb0
.clear_feature_endpoint_halt(endpoint_number, Direction::DeviceToHost);
}
}

// queue setup packet and convert to a control event
Expand Down

0 comments on commit d2feff0

Please sign in to comment.