Skip to content

Commit bee8561

Browse files
authored
Allow users to tweak the I2C timeout (#1233)
1 parent b1aeb25 commit bee8561

File tree

1 file changed

+2
-0
lines changed
  • libraries/Wire/src/utility

1 file changed

+2
-0
lines changed

Diff for: libraries/Wire/src/utility/twi.c

+2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ extern "C" {
4545

4646
/* Private Defines */
4747
/// @brief I2C timout in tick unit
48+
#ifndef I2C_TIMEOUT_TICK
4849
#define I2C_TIMEOUT_TICK 100
50+
#endif
4951

5052
#define SLAVE_MODE_TRANSMIT 0
5153
#define SLAVE_MODE_RECEIVE 1

0 commit comments

Comments
 (0)