Cleanup uartout declaration
This commit is contained in:
parent
90dbaa8c51
commit
5466bfb500
|
|
@ -65,16 +65,6 @@
|
||||||
|
|
||||||
#include "lcd.h"
|
#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(x) (MYSERIAL.print(x))
|
||||||
#define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y))
|
#define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y))
|
||||||
#define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x)))
|
#define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x)))
|
||||||
|
|
|
||||||
|
|
@ -773,9 +773,8 @@ static void factory_reset(char level)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" {
|
static FILE _uartout;
|
||||||
FILE _uartout; //= {0}; Global variable is always zero initialized. No need to explicitly state this.
|
#define uartout (&_uartout)
|
||||||
}
|
|
||||||
|
|
||||||
int uart_putchar(char c, FILE *)
|
int uart_putchar(char c, FILE *)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue