Make condition slightly more readable.

This commit is contained in:
László Monda
2019-06-11 00:28:21 +02:00
parent 0caf0144dc
commit 4486f607da

View File

@@ -223,7 +223,7 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleDriverId)
if (CRC16_IsMessageValid(rxMessage)) {
uint8_t slotId = uhkModuleDriverId + 1;
BoolBitsToBytes(rxMessage->data, keyStatesBuffer, uhkModuleState->keyCount);
for (uint8_t keyId=0; keyId<uhkModuleState->keyCount; keyId++) {
for (uint8_t keyId=0; keyId < uhkModuleState->keyCount; keyId++) {
KeyStates[slotId][keyId].current = keyStatesBuffer[keyId];
}
}