From 40439a0ead2e3ec9eed83c144c8907d61cabf154 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Wed, 22 Feb 2023 12:12:21 +0000 Subject: [PATCH] Remove ifndef This appears to be unterminated - I don't understand how it compiled before, but I'm removing it to get things working again. --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2aaa915..84f36b2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -135,7 +135,6 @@ void get_modules(String) comPort->println("--END--"); } -#ifndef UNIT_TEST void setup() { // initialise serial port @@ -145,11 +144,11 @@ void setup() #endif comPort = (HardwareSerial*) &PRIMARY_SERIAL_PORT; - PRIMARY_SERIAL_PORT->begin(115200); + PRIMARY_SERIAL_PORT.begin(115200); while (!PRIMARY_SERIAL_PORT) delay(1); #if defined(SECONDARY_SERIAL_PORT) - SECONDARY_SERIAL_PORT->begin(115200); + SECONDARY_SERIAL_PORT.begin(115200); while (!SECONDARY_SERIAL_PORT) delay(1); #endif