Kickstart the slave scheduler with the value of currentSlaveId

This commit is contained in:
László Monda
2017-08-06 17:53:53 +02:00
parent 48429f1efe
commit f817a5cbb9

View File

@@ -59,5 +59,5 @@ void InitSlaveScheduler()
I2C_MasterTransferCreateHandle(I2C_MAIN_BUS_BASEADDR, &I2cMasterHandle, bridgeProtocolCallback, NULL);
// Kickstart the scheduler by triggering the first callback.
Slaves[0].updater(Slaves[0].perDriverId);
Slaves[currentSlaveId].updater(Slaves[currentSlaveId].perDriverId);
}