*/
#include "ao.h"
+#include "ao_send_packet.h"
#define AO_MAX_SEND 128
static void
ao_send_packet(void)
{
- uint16_t count;
+ uint32_t count;
uint8_t b;
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) {
return;
ao_send[i] = b;
}
- ao_radio_send(ao_send, count);
+ ao_radio_send(ao_send, (uint8_t) count);
}
static const struct ao_cmds ao_send_packet_cmds[] = {