1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

remove old not compiling code for serial defines

This commit is contained in:
andreas
2024-03-23 20:29:55 +01:00
parent d27e811317
commit 4aac6cbc6b

View File

@@ -354,11 +354,9 @@ void GwChannelList::begin(bool fallbackSerial){
#define GWSERIAL_RX -1
#endif
#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);
#else
#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);
#endif
#endif