Skip to content
  • Damien George's avatar
    stmhal/i2c: Reset the I2C peripheral if there was an error on the bus. · 74fb5d69
    Damien George authored
    If an I2C send/recv fails then the peripheral is now checked to see if
    it's in a "stuck" state waiting for the stop bit, and if so then it is
    reset so that the next I2C transaction can proceed.
    
    This patch also de-inits the I2C peripheral in the init() method, before
    init'ing it again.
    74fb5d69