Skip to content

Commit

Permalink
adjust the default i2c timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ authored and 9names committed Jun 29, 2021
1 parent 189a936 commit 6e823cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ where
I2c {
i2c,
pins,
timeout: 1255,
timeout: 2048,
}
}

Expand All @@ -162,7 +162,7 @@ where

/// Set the timeout when waiting for fifo (rx and tx).
/// It's not a time unit but the number of cycles to wait.
/// This defaults to 255
/// This defaults to 2048
pub fn set_timeout(&mut self, timeout: u16) {
self.timeout = timeout;
}
Expand Down

0 comments on commit 6e823cc

Please sign in to comment.