projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f342fbd
)
Use set_drive directly, since update_display is within GTK
author
c vw
<dl1ycf@darc.de>
Tue, 4 May 2021 14:56:42 +0000
(16:56 +0200)
committer
c vw
<dl1ycf@darc.de>
Tue, 4 May 2021 14:56:42 +0000
(16:56 +0200)
transmitter.c
patch
|
blob
|
history
diff --git
a/transmitter.c
b/transmitter.c
index 6f41524712f13d612441250e2c721d3e1c66e853..015f46e839df65ddde03c9c47f72b7b69b536d47 100644
(file)
--- a/
transmitter.c
+++ b/
transmitter.c
@@
-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;
}