No need to explicitly initialize slaves before starting up the scheduler as the scheduler takes care of them.

This commit is contained in:
László Monda
2017-10-02 00:03:51 +02:00
parent f921753b63
commit 90bad68287

View File

@@ -88,7 +88,6 @@ void InitSlaveScheduler(void)
for (uint8_t i=0; i<sizeof(Slaves) / sizeof(uhk_slave_t); i++) {
uhk_slave_t *currentSlave = Slaves + i;
currentSlave->isConnected = false;
currentSlave->init(currentSlave->perDriverId);
}
I2C_MasterTransferCreateHandle(I2C_MAIN_BUS_BASEADDR, &I2cMasterHandle, slaveSchedulerCallback, NULL);