8000 ACK is actually 0 · swkim01/Arduino@d18dd0d · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit d18dd0d

Browse files
ficetoficeto
authored andcommitted
ACK is actually 0
1 parent f4a34e1 commit d18dd0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c

Lines changed: 1 addition & 1 deletion
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)
0