Fix LED driver update, so it'll keep working after initialization.
This commit is contained in:
Submodule lib/KSDK_2.0_MK22FN512xxx12 updated: ed719ab139...cd173f98d1
Submodule lib/KSDK_2.0_MKL03Z8xxx4 updated: f0add9def0...c02d0df05b
@@ -97,7 +97,7 @@ void LedSlaveDriver_Update(uint8_t ledDriverId) {
|
||||
I2cAsyncWrite(ledDriverAddress, updatePwmRegistersBuffer, PWM_REGISTER_BUFFER_LENGTH);
|
||||
*ledIndex += PMW_REGISTER_UPDATE_CHUNK_SIZE;
|
||||
if (*ledIndex >= LED_DRIVER_LED_COUNT) {
|
||||
ledIndex = 0;
|
||||
*ledIndex = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user