mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Generate an obviously missing STOP when having finished transmitting data.
This fixes communication with PCF8563.
This commit is contained in:
parent
de98dfa146
commit
83a8745245
1 changed files with 1 additions and 0 deletions
|
|
@ -364,6 +364,7 @@ at91_twi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs)
|
|||
goto out;
|
||||
WR4(sc, TWI_THR, *buf++);
|
||||
}
|
||||
WR4(sc, TWI_CR, TWI_CR_STOP);
|
||||
}
|
||||
if ((err = at91_twi_wait(sc, TWI_SR_TXCOMP)))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue