From e25403d6c15047ad672b6af9efd1002a3e900140 Mon Sep 17 00:00:00 2001 From: Ed Gonzalez Date: Tue, 25 Aug 2015 09:53:03 -0500 Subject: [PATCH] Set the repeater relay bit when using a destination repeater --- DSP_API/SmartSDR_Interface/sched_waveform.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DSP_API/SmartSDR_Interface/sched_waveform.c b/DSP_API/SmartSDR_Interface/sched_waveform.c index dfda6d9..0e1d6f0 100644 --- a/DSP_API/SmartSDR_Interface/sched_waveform.c +++ b/DSP_API/SmartSDR_Interface/sched_waveform.c @@ -239,6 +239,11 @@ void sched_waveform_setDestinationRptr(uint32 slice , const char * destination_r /* Enforce termination */ _dstar->outgoing_header.destination_rptr[8] = '\0'; + if ( strncmp(_dstar->outgoing_header.destination_rptr, "DIRECT", strlen("DIRECT")) != 0 ) { + output("WOOT\n"); + _dstar->outgoing_header.flag1 = 0x1 << 6; + } + dstar_dumpHeader(&(_dstar->outgoing_header)); }