From df08877c1e7f4d4b586d5c45a07f2d6b6dace474 Mon Sep 17 00:00:00 2001 From: mikecarper Date: Thu, 22 Oct 2026 11:53:31 -0700 Subject: [PATCH] Complete UART diagnostic platform test adapters --- test/fixtures/rs232_heartbeat/HardwareSerial.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/fixtures/rs232_heartbeat/HardwareSerial.h b/test/fixtures/rs232_heartbeat/HardwareSerial.h index c4c85c4a3..f0b4289a4 100644 --- a/test/fixtures/rs232_heartbeat/HardwareSerial.h +++ b/test/fixtures/rs232_heartbeat/HardwareSerial.h @@ -19,6 +19,10 @@ public: std::function delivered; bool setPins(int16_t, int16_t) { return pins_ok; } + void setRX(int16_t) {} + void setTX(int16_t) {} + void setRx(int16_t) {} + void setTx(int16_t) {} void begin(uint32_t) { ++begin_calls; installed = begin_ok; rx.clear(); } void end() { ++end_calls; installed = false; rx.clear(); } explicit operator bool() const { return installed; } @@ -45,3 +49,5 @@ public: if (installed) rx.insert(rx.end(), data, data + size); } }; +using Uart = HardwareSerial; +using SerialUART = HardwareSerial;