Slightly shorten the initialization of moduleID and pointerRole.

This commit is contained in:
László Monda
2017-06-15 19:30:50 +02:00
parent 8d232f3968
commit 9800145314

View File

@@ -164,11 +164,8 @@ static void parseKeyActions(uint8_t targetLayer, serialized_buffer_t *buffer, ui
}
static void parseModule(serialized_buffer_t *buffer, uint8_t targetLayer) {
uint8_t moduleID, pointerRole;
moduleID = readUInt8(buffer);
pointerRole = readUInt8(buffer);
uint8_t moduleID = readUInt8(buffer);
uint8_t pointerRole = readUInt8(buffer);
parseKeyActions(targetLayer, buffer, moduleID, pointerRole);
}