Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Nov 23, 2023
1 parent 7e95d2c commit 1fb0f2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ where
// check read timer
if self.flags.contains(Flags::READ_TIMEOUT) {
if let Some((timeout, max, rate)) = self.config.frame_read_rate() {
let total = (self.read_remains - self.read_remains_prev).try_into().unwrap_or(u16::MAX);
let total =
(self.read_remains - self.read_remains_prev).try_into().unwrap_or(u16::MAX);

// read rate, start timer for next period
if total > rate {
Expand Down

0 comments on commit 1fb0f2d

Please sign in to comment.