projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a53862b
)
debug saving of the adc attenuation value
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Fri, 14 Jan 2022 11:18:49 +0000
(16:48 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Fri, 14 Jan 2022 11:18:49 +0000
(16:48 +0530)
radio.c
patch
|
blob
|
history
diff --git
a/radio.c
b/radio.c
index 764680785c196172a1cf8a482e629015709b9d88..d49f9cb0e465a6908aace2cc47ad986a290b8d6f 100644
(file)
--- a/
radio.c
+++ b/
radio.c
@@
-2592,6
+2592,9
@@
void radioSaveState() {
setProperty("radio.adc[0].random", value);
sprintf(value, "%d", adc[0].preamp);
setProperty("radio.adc[0].preamp", value);
+
+ printf("saving adc attenuation values: %d\n", adc[0].attenuation);
+
sprintf(value, "%d", adc[0].attenuation);
setProperty("radio.adc[0].attenuation", value);
sprintf(value, "%d", adc[0].enable_step_attenuation);