altos: Don't include bufio debug commands by default
authorKeith Packard <keithp@keithp.com>
Fri, 12 Apr 2013 09:42:37 +0000 (02:42 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 12 Apr 2013 09:42:37 +0000 (02:42 -0700)
We shouldn't need these

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_bufio.c

index 87de457f96f88539caff1efdc9ef8f00775ed090..c0fe604a8784943b3bc4033ca2aaa71fdc07c9f9 100644 (file)
 #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
 }