From: Ramakrishnan Muthukrishnan Date: Fri, 13 Jan 2023 17:19:21 +0000 (+0530) Subject: another attempt at level control for CW signals X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/$top_link?a=commitdiff_plain;h=e04846ec9cb5c832824d832c1bd214875d54f7ab;p=pihpsdr.git another attempt at level control for CW signals --- diff --git a/transmitter.c b/transmitter.c index 7c7b7ba..56fdfb5 100644 --- a/transmitter.c +++ b/transmitter.c @@ -981,6 +981,7 @@ static void full_tx_buffer(TRANSMITTER *tx) { switch(protocol) { case ORIGINAL_PROTOCOL: gain=32767.0; // 16 bit + gain=gain*(double)transmitter->drive_level*0.00392; break; case NEW_PROTOCOL: gain=8388607.0; // 24 bit