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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user