Add LED_DRIVERS_ENABLED

This commit is contained in:
László Monda
2017-12-28 00:08:29 +01:00
parent 25a2b3af93
commit fa558abef3
5 changed files with 12 additions and 1 deletions

View File

@@ -265,8 +265,10 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleDriverId)
void UhkModuleSlaveDriver_Disconnect(uint8_t uhkModuleDriverId)
{
#ifdef LED_DRIVERS_ENABLED
if (uhkModuleDriverId == SlaveId_LeftKeyboardHalf) {
Slaves[SlaveId_LeftLedDriver].isConnected = false;
}
UhkModuleStates[uhkModuleDriverId].moduleId = 0;
#endif
}