summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-04 16:02:46 -0700
committerKeith Packard <keithp@keithp.com>2017-04-04 16:02:46 -0700
commit4eced9224f40e48d7057352b3424c18025f43f25 (patch)
tree910cce6c66b5078d0f48e6893cae0444d7212caa /src/drivers
parentd4ff161e89d852c07934704ea2cbea20a48259a7 (diff)
altos: Disable FAT commands unless requested
This are debugging commands; don't provide them unless requested Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/ao_fat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/ao_fat.c b/src/drivers/ao_fat.c
index fb8eecff..43e7df23 100644
--- a/src/drivers/ao_fat.c
+++ b/src/drivers/ao_fat.c
@@ -1615,7 +1615,7 @@ ao_fat_hexdump_cmd(void)
ao_cmd_status = ao_cmd_syntax_error;
return;
}
-
+
fd = ao_fat_open(name, AO_FAT_OPEN_READ);
if (fd < 0) {
printf ("Open failed: %d\n", fd);
@@ -1649,5 +1649,7 @@ void
ao_fat_init(void)
{
ao_bufio_init();
+#if FAT_COMMANDS
ao_cmd_register(&ao_fat_cmds[0]);
+#endif
}