From 799fd496962e2f9f49eb913b60ab45e018b3f7be Mon Sep 17 00:00:00 2001 From: andreas Date: Mon, 24 Jan 2022 14:51:53 +0100 Subject: [PATCH] make the serial input/outout working again, show it's counters correctly --- Readme.md | 3 +++ lib/channel/GwChannelList.cpp | 4 ++-- web/index.js | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index fa84e22..d799ec2 100644 --- a/Readme.md +++ b/Readme.md @@ -145,6 +145,9 @@ For details refer to the [example description](lib/exampletask/Readme.md). Changelog --------- +[20220124](../../releases/tag/20220124) +********* +* make the serial input and output working again [20220114](../../releases/tag/20220114) ********* * incorporate some changes from [Homberger](https://github.com/AK-Homberger/NMEA2000-AIS-Gateway) to improve AIS compatibility with Raymarine displays diff --git a/lib/channel/GwChannelList.cpp b/lib/channel/GwChannelList.cpp index 537b629..635799a 100644 --- a/lib/channel/GwChannelList.cpp +++ b/lib/channel/GwChannelList.cpp @@ -102,8 +102,8 @@ void GwChannelList::begin(bool fallbackSerial){ theChannels.push_back(channel); //serial 1 - bool serCanRead=false; - bool serCanWrite=false; + bool serCanRead=true; + bool serCanWrite=true; int serialrx=-1; int serialtx=-1; #ifdef GWSERIAL_MODE diff --git a/web/index.js b/web/index.js index 7990241..0e17a38 100644 --- a/web/index.js +++ b/web/index.js @@ -320,8 +320,8 @@ let counters={ countTCPClientout: 'TCPclient out', countUSBin: 'USB in', countUSBout: 'USB out', - countSERIn: 'Serial in', - countSEROut: 'Serial out' + countSERin: 'Serial in', + countSERout: 'Serial out' } function showOverlay(text, isHtml) { let el = document.getElementById('overlayContent');