add onReceive callback

This commit is contained in:
KonradIT
2025-01-21 00:14:01 +01:00
parent 3f69b1820f
commit 7cb0db0ed5
+1
View File
@@ -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