From 7cb0db0ed510f4782f64932fb76ce0f69f382f16 Mon Sep 17 00:00:00 2001 From: KonradIT Date: Tue, 21 Jan 2025 00:14:01 +0100 Subject: [PATCH] add onReceive callback --- lib/comms/comms.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/comms/comms.cpp b/lib/comms/comms.cpp index aea8554..55f3e00 100644 --- a/lib/comms/comms.cpp +++ b/lib/comms/comms.cpp @@ -79,6 +79,7 @@ bool Comms::initComms(Config &c) #if SEEK_ON_X #define SERIAL_PORT 1 HardwareSerial SerialPort(SERIAL_PORT); + SerialPort.onReceive(_onReceive1, false); SerialPort.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN); Comms1 = new ReadlineComms("Host", SerialPort); #endif