Chameleon-Mini
LEDHook.h
1 /*
2  * LEDHook.h
3  *
4  * Created on: 02.12.2014
5  * Author: sk
6  */
7 
8 #ifndef LEDHOOK_H_
9 #define LEDHOOK_H_
10 
11 #include "Settings.h"
12 
13 INLINE void LEDHook(LEDHookEnum Func, LEDActionEnum Action) {
14  extern LEDActionEnum LEDGreenAction;
15  extern LEDActionEnum LEDRedAction;
16 
17  if (GlobalSettings.ActiveSettingPtr->LEDGreenFunction == Func) {
18  LEDGreenAction = Action;
19  }
20 
21  if (GlobalSettings.ActiveSettingPtr->LEDRedFunction == Func) {
22  LEDRedAction = Action;
23  }
24 }
25 
26 #endif /* LEDHOOK_H_ */