projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add configuration support
[fw/altos]
/
ao_cmd.c
diff --git
a/ao_cmd.c
b/ao_cmd.c
index 7f7865364da5a4a10949a1a5e2d964aeecca1512..91abe7f08837c6d321aecc038c868d6daf7ee1aa 100644
(file)
--- a/
ao_cmd.c
+++ b/
ao_cmd.c
@@
-152,9
+152,8
@@
ao_cmd_hex(void)
ao_cmd_status = r;
}
ao_cmd_status = r;
}
-#if 0
-static void
-decimal(void)
+void
+ao_cmd_decimal(void)
{
__xdata uint8_t r = ao_cmd_lex_error;
{
__xdata uint8_t r = ao_cmd_lex_error;
@@
-162,7
+161,7
@@
decimal(void)
ao_cmd_white();
for(;;) {
if ('0' <= ao_cmd_lex_c && ao_cmd_lex_c <= '9')
ao_cmd_white();
for(;;) {
if ('0' <= ao_cmd_lex_c && ao_cmd_lex_c <= '9')
- ao_cmd_lex_i = (ao_cmd_lex_i * 10
) |
(ao_cmd_lex_c - '0');
+ ao_cmd_lex_i = (ao_cmd_lex_i * 10
) +
(ao_cmd_lex_c - '0');
else
break;
r = ao_cmd_success;
else
break;
r = ao_cmd_success;
@@
-171,7
+170,6
@@
decimal(void)
if (r != ao_cmd_success)
ao_cmd_status = r;
}
if (r != ao_cmd_success)
ao_cmd_status = r;
}
-#endif
static void
eol(void)
static void
eol(void)