summaryrefslogtreecommitdiff
path: root/src/ao_packet_master.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-07 00:40:59 -0400
committerKeith Packard <keithp@keithp.com>2010-08-07 00:40:59 -0400
commit4738cb2fc639adb1d9237e6c903479f0690dd81a (patch)
tree5664b86fe4c3a8d94bf426b6f5cdd8e8d3fa429a /src/ao_packet_master.c
parentb7699a5907e64bc7547fcc27e73f4a35bbaabfff (diff)
altos: add callsign to packet mode, increase payload to 64 bytes
Untested, but it 'should' work. Need to add callsign setting to packet mode users. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_packet_master.c')
-rw-r--r--src/ao_packet_master.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ao_packet_master.c b/src/ao_packet_master.c
index ef86fa28..72bb908a 100644
--- a/src/ao_packet_master.c
+++ b/src/ao_packet_master.c
@@ -77,12 +77,14 @@ ao_packet_master(void)
{
uint8_t status;
+ ao_config_get();
ao_radio_set_packet();
ao_tx_packet.addr = ao_serial_number;
ao_tx_packet.len = AO_PACKET_SYN;
ao_packet_master_time = ao_time();
ao_packet_master_delay = AO_PACKET_MASTER_DELAY_SHORT;
while (ao_packet_enable) {
+ memcpy(ao_tx_packet.callsign, ao_config.callsign, AO_MAX_CALLSIGN);
ao_packet_send();
if (ao_tx_packet.len)
ao_packet_master_busy();