]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Use set_drive directly, since update_display is within GTK
authorc vw <dl1ycf@darc.de>
Tue, 4 May 2021 14:56:42 +0000 (16:56 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 4 May 2021 14:56:42 +0000 (16:56 +0200)
transmitter.c

index 6f41524712f13d612441250e2c721d3e1c66e853..015f46e839df65ddde03c9c47f72b7b69b536d47 100644 (file)
@@ -50,6 +50,7 @@
 #endif
 #include "audio.h"
 #include "ext.h"
+#include "sliders.h"
 
 double getNextSideToneSample();
 double getNextInternalSideToneSample();
@@ -684,7 +685,7 @@ static gboolean update_display(gpointer data) {
 //  set the drive slider to zero. Do not do this while tuning
 //
     if (tx->swr_protection && !getTune() && tx->swr >= tx->swr_alarm) {
-      g_idle_add(ext_set_drive, GINT_TO_POINTER(0));
+      set_drive(0.0);
       display_swr_protection = TRUE;
     }