Cleanup uartout declaration

This commit is contained in:
Alex Voinea 2023-09-27 17:06:06 +02:00
parent 90dbaa8c51
commit 5466bfb500
2 changed files with 2 additions and 13 deletions

View File

@ -65,16 +65,6 @@
#include "lcd.h"
#ifdef __cplusplus
extern "C" {
#endif
extern FILE _uartout;
#ifdef __cplusplus
}
#endif
#define uartout (&_uartout)
#define SERIAL_PROTOCOL(x) (MYSERIAL.print(x))
#define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y))
#define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x)))

View File

@ -773,9 +773,8 @@ static void factory_reset(char level)
}
}
extern "C" {
FILE _uartout; //= {0}; Global variable is always zero initialized. No need to explicitly state this.
}
static FILE _uartout;
#define uartout (&_uartout)
int uart_putchar(char c, FILE *)
{