Merge pull request #28 from leandre84/master

Fix wrong variable name in LEDSetFuncById() if LED_SETTING_GLOBAL disabled
This commit is contained in:
Georg Land
2016-10-24 13:10:32 +02:00
committed by GitHub
+2 -2
View File
@@ -111,11 +111,11 @@ void LEDSetFuncById(uint8_t Mask, LEDHookEnum Function)
{
#ifndef LED_SETTING_GLOBAL
if (Mask & LED_GREEN) {
GlobalSettings.ActiveSettingPtr->LEDGreenFunction = Func;
GlobalSettings.ActiveSettingPtr->LEDGreenFunction = Function;
}
if (Mask & LED_RED) {
GlobalSettings.ActiveSettingPtr->LEDRedFunction = Func;
GlobalSettings.ActiveSettingPtr->LEDRedFunction = Function;
}
#else
/* Write LED func to all settings when using global settings */