mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-21 09:43:06 +01:00
remove old not compiling code for serial defines
This commit is contained in:
@@ -354,11 +354,9 @@ void GwChannelList::begin(bool fallbackSerial){
|
|||||||
#define GWSERIAL_RX -1
|
#define GWSERIAL_RX -1
|
||||||
#endif
|
#endif
|
||||||
#ifdef GWSERIAL_TYPE
|
#ifdef GWSERIAL_TYPE
|
||||||
setSerialError(&Serial1,SERIAL1_CHANNEL_ID,this->logger);
|
|
||||||
addSerial(new SerialWrapper<decltype(Serial1)>(&Serial1,SERIAL1_CHANNEL_ID),GWSERIAL_TYPE,GWSERIAL_RX,GWSERIAL_TX);
|
addSerial(new SerialWrapper<decltype(Serial1)>(&Serial1,SERIAL1_CHANNEL_ID),GWSERIAL_TYPE,GWSERIAL_RX,GWSERIAL_TX);
|
||||||
#else
|
#else
|
||||||
#ifdef GWSERIAL_MODE
|
#ifdef GWSERIAL_MODE
|
||||||
setSerialError(&Serial1,SERIAL1_CHANNEL_ID,this->logger);
|
|
||||||
addSerial(new SerialWrapper<decltype(Serial1)>(&Serial1,SERIAL1_CHANNEL_ID),GWSERIAL_MODE,GWSERIAL_RX,GWSERIAL_TX);
|
addSerial(new SerialWrapper<decltype(Serial1)>(&Serial1,SERIAL1_CHANNEL_ID),GWSERIAL_MODE,GWSERIAL_RX,GWSERIAL_TX);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user