Skip to content

Commit

Permalink
remove old not compiling code for serial defines
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Mar 23, 2024
1 parent d27e811 commit 4aac6cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/channel/GwChannelList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4aac6cb

Please sign in to comment.