From 890b97dcd06485bebb84674bdf6c21733f7d75d5 Mon Sep 17 00:00:00 2001 From: c vw Date: Mon, 15 Nov 2021 13:46:10 +0100 Subject: [PATCH] Corrected interplay of "pa_enabled" and "band->disablePA". --- new_protocol.c | 2 +- old_protocol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/new_protocol.c b/new_protocol.c index d6bac9d..ef29042 100644 --- a/new_protocol.c +++ b/new_protocol.c @@ -692,7 +692,7 @@ static void new_protocol_general() { general_buffer[37]=0x08; // phase word (not frequency) general_buffer[38]=0x01; // enable hardware timer - if(band->disablePA) { + if(!pa_enabled || band->disablePA) { general_buffer[58]=0x00; } else { general_buffer[58]=0x01; // enable PA diff --git a/old_protocol.c b/old_protocol.c index 02b183a..3ece712 100644 --- a/old_protocol.c +++ b/old_protocol.c @@ -1628,8 +1628,8 @@ void ozy_send_buffer() { output_buffer[C2]= 0x00; output_buffer[C3]= 0x00; output_buffer[C4]= 0x00; - if (pa_enabled || txband->disablePA) output_buffer[C2] |= 0x08; - if (tune) output_buffer[C2] |= 0x10; + if (pa_enabled && !txband->disablePA) output_buffer[C2] |= 0x08; + if (tune) output_buffer[C2] |= 0x10; } command=4; break; -- 2.45.2