mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Fix: Don't generate start at the end of WriteWithoutStop transfer. Needs cleanup
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@248 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
347c87eff8
commit
7dd7c0201c
@ -507,8 +507,11 @@ static void EV_IRQHandler(I2CRecTypeDef *i2cx)
|
||||
i2cx->transfer_state.STOP_REQUESTED = 1;
|
||||
DebugPinLow(2);
|
||||
} else {
|
||||
I2C_GenerateSTART(i2cx->base, ENABLE);
|
||||
i2cx->transfer_state.STOP_REQUESTED = 1;
|
||||
//I2C_GenerateSTART(i2cx->base, ENABLE);
|
||||
//i2cx->transfer_state.STOP_REQUESTED = 1;
|
||||
TransferEnd(i2cx);
|
||||
/* Disable all interrupts */
|
||||
I2C_ITConfig(i2cx->base, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR, DISABLE);
|
||||
}
|
||||
|
||||
if(i2cx->buffer_len == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user