projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/easymega-v3.0: Update i2c pin usage
[fw/altos]
/
src
/
kernel
/
ao_send_packet.c
diff --git
a/src/kernel/ao_send_packet.c
b/src/kernel/ao_send_packet.c
index c8a1d46e7d4523a68286914fc84e81dfefb4dd24..ff3ab68d15caa9d0944e6b7ff2c621f98c5e8cf4 100644
(file)
--- a/
src/kernel/ao_send_packet.c
+++ b/
src/kernel/ao_send_packet.c
@@
-17,20
+17,20
@@
*/
#include "ao.h"
*/
#include "ao.h"
+#include "ao_send_packet.h"
#define AO_MAX_SEND 128
#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)
{
static void
ao_send_packet(void)
{
-
__pdata uint16
_t count;
+
uint32
_t count;
uint8_t b;
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) {
if (ao_cmd_status != ao_cmd_success)
return;
if (count > AO_MAX_SEND - 2) {
@@
-44,10
+44,10
@@
ao_send_packet(void)
return;
ao_send[i] = b;
}
return;
ao_send[i] = b;
}
- ao_radio_send(ao_send, count);
+ ao_radio_send(ao_send,
(uint8_t)
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 }
};
{ ao_send_packet, "S <len>\0Send packet. Data on next line" },
{ 0, NULL }
};