mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
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.
30 lines
490 B
C
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_ */
|