]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
create_transmitter: do not leave tx->alc uninitialized.
authorc vw <dl1ycf@darc.de>
Tue, 16 Nov 2021 08:47:44 +0000 (09:47 +0100)
committerc vw <dl1ycf@darc.de>
Tue, 16 Nov 2021 08:47:44 +0000 (09:47 +0100)
transmitter.c

index 8fd8319ef4ab7dbbc5375c961b505db2a3d7d142..163b82ae98646ecb35006c7965dfa363a342525c 100644 (file)
@@ -893,6 +893,8 @@ fprintf(stderr,"create_transmitter: id=%d buffer_size=%d mic_sample_rate=%d mic_
   tx->swr_protection = FALSE;
   tx->swr_alarm=3.0;       // default value for SWR protection
 
+  tx->alc=0.0;
+
   transmitter_restore_state(tx);