projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ff161
)
altos: Disable FAT commands unless requested
author
Keith Packard
<keithp@keithp.com>
Tue, 4 Apr 2017 23:02:46 +0000
(16:02 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 4 Apr 2017 23:02:46 +0000
(16:02 -0700)
This are debugging commands; don't provide them unless requested
Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_fat.c
patch
|
blob
|
history
diff --git
a/src/drivers/ao_fat.c
b/src/drivers/ao_fat.c
index fb8eecff177322cf9b46a959f87fee4bbe9fbf89..43e7df238c800eedf2face8c68ddb043273a1fd8 100644
(file)
--- 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
}