Fix test for direction switch
This commit is contained in:
parent
890d8e9968
commit
b1d0aaf180
@ -88,9 +88,9 @@ static int i2c_transaction(uint8_t * data, int length, bool read) {
|
|||||||
HOSTAA = HOSTAA;
|
HOSTAA = HOSTAA;
|
||||||
} else
|
} else
|
||||||
// If we are waiting on direction switch
|
// If we are waiting on direction switch
|
||||||
if (HOCTLA & (1 << 2)) {
|
if (HOCTL2A & (1 << 2)) {
|
||||||
// Complete direction switch
|
// Complete direction switch
|
||||||
HOCTLA &= ~(1 << 2);
|
HOCTL2A &= ~(1 << 2);
|
||||||
} else {
|
} else {
|
||||||
// Start new transaction
|
// Start new transaction
|
||||||
HOCTLA = (1 << 6) | (0b111 << 2);
|
HOCTLA = (1 << 6) | (0b111 << 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user