diff options
author | Bdale Garbee <bdale@gag.com> | 2018-10-20 01:18:12 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2018-10-20 01:18:12 -0600 |
commit | 0686a7b8aec524d81bda4c572549a3a068ce0eed (patch) | |
tree | 2e6061c834b99e3b9668be8b3cfb1627251365d3 /src/kernel/ao_send_packet.c | |
parent | 6aa451ce81bfdfe679e3f9902043a5f0d235c745 (diff) | |
parent | cc528f1ff0271ec6488a1a7b91c731183502101e (diff) |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/kernel/ao_send_packet.c')
-rw-r--r-- | src/kernel/ao_send_packet.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/kernel/ao_send_packet.c b/src/kernel/ao_send_packet.c index c8a1d46e..cae25151 100644 --- a/src/kernel/ao_send_packet.c +++ b/src/kernel/ao_send_packet.c @@ -20,17 +20,16 @@ #define AO_MAX_SEND 128 -static __xdata uint8_t ao_send[AO_MAX_SEND]; +static uint8_t ao_send[AO_MAX_SEND]; static void ao_send_packet(void) { - __pdata uint16_t count; + uint16_t count; uint8_t b; - __pdata uint8_t i; + uint8_t i; - ao_cmd_hex(); - count = ao_cmd_lex_i; + count = ao_cmd_hex(); if (ao_cmd_status != ao_cmd_success) return; if (count > AO_MAX_SEND - 2) { @@ -47,7 +46,7 @@ ao_send_packet(void) ao_radio_send(ao_send, count); } -static __code struct ao_cmds ao_send_packet_cmds[] = { +static const struct ao_cmds ao_send_packet_cmds[] = { { ao_send_packet, "S <len>\0Send packet. Data on next line" }, { 0, NULL } }; |