File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -83,18 +83,13 @@ int main(int argc, char **argv)
83
83
}
84
84
85
85
r = rtlsdr_open (& dev , dev_index );
86
+
87
+ /* Flip on the bias tee on the given GPIO pin */
86
88
rtlsdr_set_bias_tee_gpio (dev , gpio_pin , bias_on );
87
89
88
- exit :
89
- /*
90
- * Note - rtlsdr_close() in this tree does not clear the bias tee
91
- * GPIO line, so it leaves the bias tee enabled if a client program
92
- * doesn't explictly disable it.
93
- *
94
- * If that behaviour changes then another rtlsdr_close() will be
95
- * needed that takes some extension flags, and one of them should
96
- * be to either explicitly close the biast or leave it alone.
97
- */
90
+ /* Ensure it stays on during rtlsdr_close() */
91
+ rtlsdr_set_bias_tee_leave_on (dev , 1 );
92
+
98
93
rtlsdr_close (dev );
99
94
100
95
return r >= 0 ? r : - r ;
You can’t perform that action at this time.
0 commit comments