]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Enable/Disable TX compressor if TX compression value is changed to zero/nonzero
authorc vw <dl1ycf@darc.de>
Wed, 22 Sep 2021 14:45:38 +0000 (16:45 +0200)
committerc vw <dl1ycf@darc.de>
Wed, 22 Sep 2021 14:45:38 +0000 (16:45 +0200)
actions.c

index 708ef87b274e1662fcb93b57e234773bb4924083..39335bd31cada25f22ce3cd234d972bff4b89897 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -505,6 +505,7 @@ int process_action(void *data) {
       if(can_transmit) {
         value=KnobOrWheel(a, transmitter->compressor_level, 0.0, 20.0, 1.0);
        transmitter_set_compressor_level(transmitter,value);
+        transmitter_set_compressor(transmitter, value > 0.5);
       }
       g_idle_add(ext_vfo_update, NULL);
       break;