1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 15:33:05 +01:00

avoid the need for additional includes for task interfaces

This commit is contained in:
andreas
2023-10-28 11:04:40 +02:00
parent ff1bc50607
commit a98693a9b1
9 changed files with 29 additions and 43 deletions

View File

@@ -4,4 +4,19 @@
//task function
void initButtons(GwApi *param);
DECLARE_INITFUNCTION(initButtons);
class IButtonTask : public GwApi::TaskInterfaces::Base
{
public:
typedef enum
{
OFF,
PRESSED,
PRESSED_5, // 5...10s
PRESSED_10 //>10s
} ButtonState;
ButtonState state=OFF;
long pressCount=0;
};
DECLARE_TASKIF(IButtonTask);
#endif