terminal example: Remove unused BUFFER_SIZE macro, redundant setbuf

(Line-buffering is now disabled by default.)

Relates to #59.
This commit is contained in:
Angus Gratton 2015-11-21 17:11:07 +11:00
parent ffa1550193
commit 202101c890

View file

@ -15,7 +15,6 @@
#include "task.h" #include "task.h"
#define MAX_ARGC (10) #define MAX_ARGC (10)
#define BUFFER_SIZE (81)
static void cmd_on(uint32_t argc, char *argv[]) static void cmd_on(uint32_t argc, char *argv[])
{ {
@ -112,6 +111,5 @@ static void gpiomon()
void user_init(void) void user_init(void)
{ {
uart_set_baud(0, 115200); uart_set_baud(0, 115200);
setbuf(stdout, NULL);
gpiomon(); gpiomon();
} }