From ff81b4d1b4a383bbb40c3c201faee9f01966d745 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Sun, 3 Jan 2021 10:19:37 +0000 Subject: [PATCH] cleaning up --- StringFormatter.cpp | 8 ++------ version.h | 4 ---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/StringFormatter.cpp b/StringFormatter.cpp index e1d7ec3..204e0df 100644 --- a/StringFormatter.cpp +++ b/StringFormatter.cpp @@ -22,11 +22,8 @@ #if defined(ARDUINO_ARCH_SAMD) // Some processors use a gcc compiler that renames va_list!!! #include - Print * StringFormatter::diagSerial= &SerialUSB; - -#elif defined(ARDUINO_ARCH_AVR) - Print * StringFormatter::diagSerial= &Serial; -#elif defined(ARDUINO_ARCH_MEGAAVR) + Print * StringFormatter::diagSerial= &SerialUSB; +#else Print * StringFormatter::diagSerial=&Serial; #endif @@ -44,7 +41,6 @@ void StringFormatter::diag( const FSH* input...) { va_list args; va_start(args, input); send2(diagSerial,input,args); - diagSerial->flush(); } void StringFormatter::lcd(byte row, const FSH* input...) { diff --git a/version.h b/version.h index aa6a0bc..5f219a3 100644 --- a/version.h +++ b/version.h @@ -1,10 +1,6 @@ #ifndef version_h #define version_h -#include "StringFormatter.h" - -// const char VERSION[] FLASH ="0.2.0"; #define VERSION "3.0.1" - #endif