mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
cleaning up
This commit is contained in:
parent
cb0d2bcdc5
commit
ff81b4d1b4
@ -22,11 +22,8 @@
|
|||||||
#if defined(ARDUINO_ARCH_SAMD)
|
#if defined(ARDUINO_ARCH_SAMD)
|
||||||
// Some processors use a gcc compiler that renames va_list!!!
|
// Some processors use a gcc compiler that renames va_list!!!
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
Print * StringFormatter::diagSerial= &SerialUSB;
|
Print * StringFormatter::diagSerial= &SerialUSB;
|
||||||
|
#else
|
||||||
#elif defined(ARDUINO_ARCH_AVR)
|
|
||||||
Print * StringFormatter::diagSerial= &Serial;
|
|
||||||
#elif defined(ARDUINO_ARCH_MEGAAVR)
|
|
||||||
Print * StringFormatter::diagSerial=&Serial;
|
Print * StringFormatter::diagSerial=&Serial;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -44,7 +41,6 @@ void StringFormatter::diag( const FSH* input...) {
|
|||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, input);
|
va_start(args, input);
|
||||||
send2(diagSerial,input,args);
|
send2(diagSerial,input,args);
|
||||||
diagSerial->flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StringFormatter::lcd(byte row, const FSH* input...) {
|
void StringFormatter::lcd(byte row, const FSH* input...) {
|
||||||
|
Loading…
Reference in New Issue
Block a user