tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change Slave sends '0' during convert prozess on all DS18B20
[owSlave2.git]
/
common
/
I2C
/
SHT2x.c
diff --git
a/common/I2C/SHT2x.c
b/common/I2C/SHT2x.c
index
157faca
..
effe916
100644
(file)
--- a/
common/I2C/SHT2x.c
+++ b/
common/I2C/SHT2x.c
@@
-128,7
+128,7
@@
uint8_t SHT2x_MeasurePoll(etSHT2xMeasureType eSHT2xMeasureType, int16_t *pMeasur
//-- poll every 10ms for measurement ready. Timeout after 20 retries (200ms)--
do
{ I2c_StartCondition();
//-- poll every 10ms for measurement ready. Timeout after 20 retries (200ms)--
do
{ I2c_StartCondition();
- _delay_ms(
10
00); //delay 10ms
+ _delay_ms(
2
00); //delay 10ms
if(i++ >= 20) break;
} while(I2c_WriteByte (I2C_ADR_R) == ACK_ERROR);
if (i>=20) error |= TIME_OUT_ERROR;
if(i++ >= 20) break;
} while(I2c_WriteByte (I2C_ADR_R) == ACK_ERROR);
if (i>=20) error |= TIME_OUT_ERROR;