From 38b2bb70372b2cf1f7da8c36116b56b17a84fb11 Mon Sep 17 00:00:00 2001 From: ficeto Date: Sun, 3 May 2015 17:53:24 +0300 Subject: [PATCH] overflow at 160MHz --- cores/esp8266/core_esp8266_si2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cores/esp8266/core_esp8266_si2c.c b/cores/esp8266/core_esp8266_si2c.c index 36c3db510..e53707df7 100644 --- a/cores/esp8266/core_esp8266_si2c.c +++ b/cores/esp8266/core_esp8266_si2c.c @@ -72,7 +72,7 @@ void twi_stop(void){ } static void twi_delay(unsigned char v){ - unsigned char i; + unsigned int i; unsigned int reg; for(i=0;i