Skip to content

Commit 38ade73

Browse files
Revert "don't return PollResult::Data when there's no data"
This reverts commit 5c88d4e.
1 parent 02f7e5d commit 38ade73

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

nrf-hal-common/src/usbd/mod.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -625,14 +625,10 @@ impl UsbBus for Usbd {
625625

626626
// TODO: Check ISO EP
627627

628-
if out_complete != 0 || in_complete != 0 || ep_setup != 0 {
629-
PollResult::Data {
630-
ep_out: out_complete,
631-
ep_in_complete: in_complete,
632-
ep_setup,
633-
}
634-
} else {
635-
PollResult::None
628+
PollResult::Data {
629+
ep_out: out_complete,
630+
ep_in_complete: in_complete,
631+
ep_setup,
636632
}
637633
})
638634
}

0 commit comments

Comments
 (0)