Only delay the initialization of the left LED driver until the KL03 pulls up its SDB.

This commit is contained in:
László Monda
2017-08-03 01:42:11 +02:00
parent 7092e1acf9
commit 78eac147d6

View File

@@ -76,7 +76,7 @@ void LedSlaveDriver_Update(uint8_t ledDriverId) {
switch (*ledDriverPhase) {
case LedDriverPhase_SetFunctionFrame:
if (!Slaves[SlaveId_LeftKeyboardHalf].isConnected) {
if (ledDriverId == LedDriverId_Left && !Slaves[SlaveId_LeftKeyboardHalf].isConnected) {
break;
}
I2cAsyncWrite(ledDriverAddress, setFunctionFrameBuffer, sizeof(setFunctionFrameBuffer));