aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps/dsp.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-08-21 10:01:37 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-10-02 09:06:04 +0200
commitad3c88e064aa4696affa2e1c69141117a533497e (patch)
treee2a1048497eb2a9cf551510461528f1f930aa0ce /src/amps/dsp.c
parent17930af9203be9b05a3483750fb3fe8c764d81a0 (diff)
AMPS: Callref is moved completely to transaction object
Diffstat (limited to 'src/amps/dsp.c')
-rw-r--r--src/amps/dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amps/dsp.c b/src/amps/dsp.c
index 7668ff2..eb15d66 100644
--- a/src/amps/dsp.c
+++ b/src/amps/dsp.c
@@ -752,7 +752,7 @@ void sender_receive_audio(amps_t *amps, int16_t *samples, int length)
/* receive audio, but only if call established and SAT detected */
if ((amps->dsp_mode == DSP_MODE_AUDIO_RX_AUDIO_TX || amps->dsp_mode == DSP_MODE_AUDIO_RX_FRAME_TX)
- && amps->sender.callref && trans && trans->sat_detected) {
+ && trans && trans->callref && trans->sat_detected) {
int16_t down[length]; /* more than enough */
int pos, count;
int16_t *spl;
@@ -769,7 +769,7 @@ void sender_receive_audio(amps_t *amps, int16_t *samples, int length)
for (i = 0; i < count; i++) {
spl[pos++] = down[i];
if (pos == 160) {
- call_tx_audio(amps->sender.callref, spl, 160);
+ call_tx_audio(trans->callref, spl, 160);
pos = 0;
}
}