aboutsummaryrefslogtreecommitdiffhomepage
path: root/workspace/ts100/src/I2C.c
diff options
context:
space:
mode:
Diffstat (limited to 'workspace/ts100/src/I2C.c')
-rw-r--r--workspace/ts100/src/I2C.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/workspace/ts100/src/I2C.c b/workspace/ts100/src/I2C.c
index e0a4ae13..f63489b8 100644
--- a/workspace/ts100/src/I2C.c
+++ b/workspace/ts100/src/I2C.c
@@ -78,7 +78,7 @@ int I2C_Master_Read(uint8_t deviceAddr, uint8_t readAddr, uint8_t* pBuffer,
uint16_t numByteToRead) {
__IO uint32_t temp = 0;
- volatile int I2C_TimeOut = 0;
+ volatile int I2C_TimeOut = temp;
// /* While the bus is busy * /
I2C_TimeOut = 1000;