summaryrefslogtreecommitdiff
path: root/src/drivers/ao_bufio.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-13 10:51:04 -0700
committerKeith Packard <keithp@keithp.com>2013-04-13 10:51:04 -0700
commit2f7015afcca7c6042365d2124d3a5b7219e8e588 (patch)
treecf102d2abb3f9e7141fd7b7925c0c73fb3cb61d0 /src/drivers/ao_bufio.c
parent5077f3ad1967a33712e9ff411e3b2a0b4e1a5c4a (diff)
parent778daf0ccbd8a073da33497e33c29400d0ecc464 (diff)
Merge branch 'master' into droid-gps
Diffstat (limited to 'src/drivers/ao_bufio.c')
-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
}