1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 06:23:07 +01:00

handle buttons and leds completely as user tasks

This commit is contained in:
andreas
2023-10-24 15:58:43 +02:00
parent 91c1e6f85c
commit 0e10fcfee2
8 changed files with 91 additions and 57 deletions

View File

@@ -61,12 +61,6 @@ class GwApi{
};
class Status{
public:
typedef enum{
OFF,
PRESSED,
PRESSED_5, //5...10s
PRESSED_10 //>10s...30s
} ButtonState;
bool wifiApOn=false;
bool wifiClientOn=false;
bool wifiClientConnected=false;
@@ -89,8 +83,6 @@ class GwApi{
bool tcpClientConnected=false;
unsigned long n2kRx=0;
unsigned long n2kTx=0;
ButtonState button=OFF;
unsigned long buttonPresses=0;
void empty(){
wifiApOn=false;
wifiClientOn=false;
@@ -114,8 +106,6 @@ class GwApi{
tcpClientConnected=false;
n2kRx=0;
n2kTx=0;
button=OFF;
buttonPresses=0;
}
};
/**