mirror of
https://github.com/ipxe/ipxe
synced 2026-01-10 06:48:47 +03:00
Change read_bit() to return 0 or -1UL, rather than 0 or 1.
This commit is contained in:
@@ -153,7 +153,7 @@ static uint8_t i2c_recv_byte ( struct bit_basher *basher ) {
|
||||
/* Receive byte */
|
||||
for ( i = 8 ; i ; i-- ) {
|
||||
value <<= 1;
|
||||
value |= i2c_recv_bit ( basher );
|
||||
value |= ( i2c_recv_bit ( basher ) & 0x1 );
|
||||
}
|
||||
|
||||
/* Send NACK */
|
||||
|
||||
Reference in New Issue
Block a user