Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32
This commit is contained in:
commit
9b70d118b6
|
@ -97,7 +97,10 @@ void HardWire::setClock(uint32_t frequencyHz)
|
|||
dev_flags &= ~I2C_FAST_MODE;// clear FAST_MODE bit
|
||||
break;
|
||||
}
|
||||
|
||||
if (sel_hard->regs->CR1 & I2C_CR1_PE){
|
||||
i2c_disable(sel_hard);
|
||||
i2c_master_enable(sel_hard, dev_flags);
|
||||
}
|
||||
}
|
||||
|
||||
HardWire Wire(1);
|
||||
|
|
Loading…
Reference in New Issue