mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
ACK is actually 0
This commit is contained in:
@ -131,7 +131,7 @@ static bool twi_write_byte(unsigned char byte) {
|
|||||||
twi_write_bit(byte & 0x80);
|
twi_write_bit(byte & 0x80);
|
||||||
byte <<= 1;
|
byte <<= 1;
|
||||||
}
|
}
|
||||||
return twi_read_bit();//NACK/ACK
|
return !twi_read_bit();//NACK/ACK
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned char twi_read_byte(bool nack) {
|
static unsigned char twi_read_byte(bool nack) {
|
||||||
|
Reference in New Issue
Block a user