From cdbf8053658c71a657005af68202023d0b4af1fe Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 12 Apr 2013 02:42:37 -0700 Subject: [PATCH 1/1] altos: Don't include bufio debug commands by default We shouldn't need these Signed-off-by: Keith Packard --- src/drivers/ao_bufio.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/drivers/ao_bufio.c b/src/drivers/ao_bufio.c index 87de457f..c0fe604a 100644 --- a/src/drivers/ao_bufio.c +++ b/src/drivers/ao_bufio.c @@ -19,6 +19,11 @@ #include "ao.h" #endif +/* Include bufio commands */ +#ifndef AO_FAT_TEST +#define BUFIO_COMMANDS 0 +#endif + #include "ao_sdcard.h" #include "ao_bufio.h" @@ -268,6 +273,7 @@ ao_bufio_flush(void) ao_bufio_unlock(); } +#if BUFIO_COMMANDS static void ao_bufio_test_read(void) { @@ -290,6 +296,7 @@ static const struct ao_cmds ao_bufio_cmds[] = { { ao_bufio_test_read, "q\0Test bufio read" }, { 0, NULL }, }; +#endif void ao_bufio_setup(void) @@ -308,5 +315,7 @@ ao_bufio_init(void) { ao_bufio_setup(); ao_sdcard_init(); +#if BUFIO_COMMANDS ao_cmd_register(&ao_bufio_cmds[0]); +#endif } -- 2.30.2