From 29b1c98e65002471cdcc7af388c3d0e31fa5052c Mon Sep 17 00:00:00 2001 From: c vw Date: Tue, 3 Nov 2020 16:52:34 +0100 Subject: [PATCH] Cleanup of the "Hermeslite2 Apollo bits" --- old_protocol.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/old_protocol.c b/old_protocol.c index 6046fa1..c66d500 100644 --- a/old_protocol.c +++ b/old_protocol.c @@ -1703,14 +1703,18 @@ static int last_power=0; if(mic_linein) { output_buffer[C2]|=0x02; } - if(filter_board==APOLLO || device==DEVICE_HERMES_LITE2) { - output_buffer[C2]|=0x24; + if(filter_board==APOLLO) { + output_buffer[C2]|=0x2C; } if((filter_board==APOLLO) && tune) { output_buffer[C2]|=0x10; } - if((device==DEVICE_HERMES_LITE2) && pa_enabled) { - output_buffer[C2]|=0x08; // Enable PA + if (device==DEVICE_HERMES_LITE2) { + // do not set Apollo/Alex bits, + // but set ADDR=0x09 bits 18(always), 19(pa enable), 20(tune) + output_buffer[C2]= 0x04; + if (pa_enabled) output_buffer[C2] |= 0x08; + if (tune) output_buffer[C2] |= 0x10; } if(band_get_current()==band6) { output_buffer[C3]=output_buffer[C3]|0x40; // Alex 6M low noise amplifier -- 2.45.2