projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos: Make cmd number parsing functions return value
[fw/altos]
/
src
/
stmf0
/
ao_adc_stm.c
diff --git
a/src/stmf0/ao_adc_stm.c
b/src/stmf0/ao_adc_stm.c
index 571830bbe93dfe52fe3d3072d1eb94b4f6b75868..e62bb16e23be38ae4c53759cbc0fb0ab521990fe 100644
(file)
--- a/
src/stmf0/ao_adc_stm.c
+++ b/
src/stmf0/ao_adc_stm.c
@@
-103,10
+103,9
@@
ao_adc_one(void)
int ch;
uint16_t value;
- ao_cmd_decimal();
+
ch =
ao_cmd_decimal();
if (ao_cmd_status != ao_cmd_success)
return;
- ch = ao_cmd_lex_i;
if (ch < 0 || AO_NUM_ADC <= ch) {
ao_cmd_status = ao_cmd_syntax_error;
return;