summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-12 02:42:37 -0700
committerKeith Packard <keithp@keithp.com>2013-04-12 02:42:37 -0700
commitcdbf8053658c71a657005af68202023d0b4af1fe (patch)
treec33dfbbbae522bd8748bcd8ef3e3698eb7e2fcac /src
parentc54bd59780275ece87eafb8143cf0637b35e794c (diff)
altos: Don't include bufio debug commands by default
We shouldn't need these Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/ao_bufio.c9
1 files changed, 9 insertions, 0 deletions
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
}