diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-19 13:20:19 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-19 13:20:19 -0700 |
commit | e3d501940718428135e04995dff7fef691c08a20 (patch) | |
tree | b1b2cda9fed2f4c147ceb00a08fa83b49675cc98 /src/ao_stdio.c | |
parent | 6b5957d5f6f8181da7be98c9bce49a0ec0b4a713 (diff) |
altos: Solidify BT connections
Use delays while sending commands to BT module.
Don't use BT for stdio until the module is initialized.
Add \r to name setting command
Don't require 'connected' signal for command input.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_stdio.c')
-rw-r--r-- | src/ao_stdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_stdio.c b/src/ao_stdio.c index ec3b6607..6b890832 100644 --- a/src/ao_stdio.c +++ b/src/ao_stdio.c @@ -69,7 +69,7 @@ ao_echo(void) return ao_stdios[ao_cur_stdio].echo; } -void +int8_t ao_add_stdio(char (*pollchar)(void), void (*putchar)(char), void (*flush)(void)) __reentrant @@ -80,5 +80,5 @@ ao_add_stdio(char (*pollchar)(void), ao_stdios[ao_num_stdios].putchar = putchar; ao_stdios[ao_num_stdios].flush = flush; ao_stdios[ao_num_stdios].echo = 1; - ao_num_stdios++; + return ao_num_stdios++; } |