Skip to content

Commit 45e3b31

Browse files
committed
allow users to tweak the I2C timeout
1 parent b1aeb25 commit 45e3b31

File tree

1 file changed

+3
-1
lines changed
  • libraries/Wire/src/utility

1 file changed

+3
-1
lines changed

libraries/Wire/src/utility/twi.c

Lines changed: 3 additions & 1 deletion
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-
#define I2C_TIMEOUT_TICK 100
48+
#if !defined(I2C_TIMEOUT_TICK)
49+
#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)