Files
KaOs d270131062 RevE-light development version
WARNING: The files in this commit are our current development version. The hardware and software is not functional yet - so do not use it. We will not answer any support inquiry regarding this version at the moment.
2017-11-23 14:40:40 +00:00

30 lines
490 B
C

/*
* LEDHook.h
*
* Created on: 02.12.2014
* Author: sk
*/
#ifndef LEDHOOK_H_
#define LEDHOOK_H_
#include "Settings.h"
INLINE void LEDHook(LEDHookEnum Func, LEDActionEnum Action)
{
extern LEDActionEnum LEDGreenAction;
extern LEDActionEnum LEDRedAction;
if (GlobalSettings.ActiveSettingPtr->LEDGreenFunction == Func)
{
LEDGreenAction = Action;
}
if (GlobalSettings.ActiveSettingPtr->LEDRedFunction == Func)
{
LEDRedAction = Action;
}
}
#endif /* LEDHOOK_H_ */