From 735277fff97b0cf392346477428e7e9e8288a5fa Mon Sep 17 00:00:00 2001 From: ficeto Date: Sun, 3 May 2015 20:35:01 +0300 Subject: [PATCH] ACK is actually 0 --- cores/esp8266/core_esp8266_si2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_si2c.c b/cores/esp8266/core_esp8266_si2c.c index e53707df7..29149aa09 100644 --- a/cores/esp8266/core_esp8266_si2c.c +++ b/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) {