Reinitialize slaves after reconnecting them.

This commit is contained in:
László Monda
2017-06-01 01:32:57 +02:00
parent 909c6196b2
commit 7be20e34c2
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -23,6 +23,10 @@ static void bridgeProtocolCallback(I2C_Type *base, i2c_master_handle_t *handle,
}
uhk_slave_t *slave = slaves + currentSlaveId;
if (status != kStatus_Success) {
slave->initializer(slave->perDriverId);
}
slave->updater(slave->perDriverId);
currentSlaveId++;