From c251370de62011e715cd6c587852554fdcea9fce Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Sat, 11 Nov 2023 09:21:26 -0600 Subject: [PATCH] minor changes in btserial logger --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e4dd5f2..03a21bf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,13 +39,13 @@ void loop() { if (incoming == 57) { ESP_BT.println("Free memory: " + String(esp_get_free_heap_size()) + " bytes"); - } - - if(Serial2.available() && isLogging){ - String incomingData = Serial2.readStringUntil('\n'); - ESP_BT.println(incomingData); } } + // Receive from Remote and send to Bluetooth + if(Serial2.available() && isLogging){ + ESP_BT.println(Serial2.readStringUntil('\n')); + } + delay(100); } \ No newline at end of file