mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
Merge pull request #28 from leandre84/master
Fix wrong variable name in LEDSetFuncById() if LED_SETTING_GLOBAL disabled
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user