projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d669cb
)
save rx_gain_calibration
author
John Melton G0ORX
<john.d.melton@googlemail.com>
Fri, 28 Feb 2020 22:12:34 +0000
(22:12 +0000)
committer
John Melton G0ORX
<john.d.melton@googlemail.com>
Fri, 28 Feb 2020 22:12:34 +0000
(22:12 +0000)
radio.c
patch
|
blob
|
history
diff --git
a/radio.c
b/radio.c
index 8c08ee6c469ed574aad4461f71d4d429668f6333..59282f8241d29583fe33baa86799bec50bcf7b06 100644
(file)
--- a/
radio.c
+++ b/
radio.c
@@
-1864,6
+1864,10
@@
g_print("radioRestoreState: %s\n",property_path);
value=getProperty("iqswap");
if(value) iqswap=atoi(value);
+ value=getProperty("rx_gain_calibration");
+ if(value) rx_gain_calibration=atoi(value);
+
+
filterRestoreState();
bandRestoreState();
memRestoreState();
@@
-2106,6
+2110,9
@@
g_print("radioSaveState: %s\n",property_path);
sprintf(value,"%d",adc_attenuation[1]);
setProperty("adc_1_attenuation",value);
+ sprintf(value,"%d",rx_gain_calibration);
+ setProperty("rx_gain_calibration",value);
+
#ifdef SOAPYSDR
if(device==SOAPYSDR_USB_DEVICE) {
char name[128];