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

intermediate: tcp read

This commit is contained in:
andreas
2021-10-26 21:54:28 +02:00
parent 7e8e7aa35e
commit e378f6e56b
4 changed files with 35 additions and 17 deletions

View File

@@ -186,6 +186,7 @@ void setup() {
baud=usbBaud->asInt();
}
int st=usbSerial.setup(baud,3,1); //TODO: PIN defines
//int st=-1;
if (st < 0){
//falling back to old style serial for logging
Serial.begin(baud);
@@ -421,7 +422,7 @@ void loop() {
socketServer.loop();
if (usbSerial.write() == GwBuffer::ERROR){
logger.logDebug(GwLog::DEBUG,"overflow in USB serial");
//logger.logDebug(GwLog::DEBUG,"overflow in USB serial");
}
NMEA2000.ParseMessages();