1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

ACK is actually 0

This commit is contained in:
ficeto
2015-05-03 20:35:01 +03:00
parent f4a34e1962
commit d18dd0d7fd

View File

@ -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) {