From 07691c993a1175b73e65195aa5d46cc9766d6f7e Mon Sep 17 00:00:00 2001 From: Timm Bogner <64260873+timmbogner@users.noreply.github.com> Date: Tue, 7 Dec 2021 21:45:33 -0600 Subject: [PATCH] Add files via upload --- FDRS_Gateway2000/FDRS_Gateway2000.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/FDRS_Gateway2000/FDRS_Gateway2000.ino b/FDRS_Gateway2000/FDRS_Gateway2000.ino index d6dc059..c76e848 100644 --- a/FDRS_Gateway2000/FDRS_Gateway2000.ino +++ b/FDRS_Gateway2000/FDRS_Gateway2000.ino @@ -37,9 +37,11 @@ void sendLoRa() { } void setup() { - //Serial.begin(115200); - Serial.begin(115200, SERIAL_8N1, RXD2, TXD2); - +#if defined(ESP8266) + Serial.begin(115200); +#elif defined(ESP32) + Serial.begin(115200, SERIAL_8N1, RXD2, TXD2); +#endif begin_espnow(); #ifdef USE_WIFI delay(10);