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

better handling if no CAN Pins are configured

This commit is contained in:
andreas
2023-08-31 19:12:10 +02:00
parent 1b3840f207
commit f36dd37b8b
2 changed files with 30 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ class Nmea2kTwai : public tNMEA2000{
ST_BUS_OFF,
ST_RECOVERING,
ST_OFFLINE,
ST_DISABLED,
ST_ERROR
} STATE;
typedef struct{
@@ -55,6 +56,7 @@ class Nmea2kTwai : public tNMEA2000{
gpio_num_t RxPin;
uint32_t txTimeouts=0;
GwIntervalRunner timers;
bool disabled=false;
unsigned long lastRecoveryStart=0;
};