Skip to content

Commit 735277f

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
ACK is actually 0
1 parent 915eb45 commit 735277f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_si2c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static bool twi_write_byte(unsigned char byte) {
131131
twi_write_bit(byte & 0x80);
132132
byte <<= 1;
133133
}
134-
return twi_read_bit();//NACK/ACK
134+
return !twi_read_bit();//NACK/ACK
135135
}
136136

137137
static unsigned char twi_read_byte(bool nack) {

0 commit comments

Comments
 (0)