diff --git a/cores/esp8266/core_esp8266_si2c.c b/cores/esp8266/core_esp8266_si2c.c index bb7b66ed0..549273a1a 100644 --- a/cores/esp8266/core_esp8266_si2c.c +++ b/cores/esp8266/core_esp8266_si2c.c @@ -267,6 +267,7 @@ unsigned char twi_writeTo(unsigned char address, unsigned char * buf, unsigned i SCL_LOW(); twi_delay(twi_dcount); SCL_HIGH(); + unsigned int t=0; while(SCL_READ()==0 && (t++)