From d18dd0d7fda45d47f825c4a124167caf28906c53 Mon Sep 17 00:00:00 2001 From: ficeto Date: Sun, 3 May 2015 20:35:01 +0300 Subject: [PATCH] ACK is actually 0 --- hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c b/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c index e53707df7..29149aa09 100644 --- a/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c +++ b/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c @@ -131,7 +131,7 @@ static bool twi_write_byte(unsigned char byte) { twi_write_bit(byte & 0x80); byte <<= 1; } - return twi_read_bit();//NACK/ACK + return !twi_read_bit();//NACK/ACK } static unsigned char twi_read_byte(bool nack) {