Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bandwidth over 20 MHZ not supported #2

Open
freqmod opened this issue Nov 29, 2018 · 0 comments
Open

Bandwidth over 20 MHZ not supported #2

freqmod opened this issue Nov 29, 2018 · 0 comments

Comments

@freqmod
Copy link

freqmod commented Nov 29, 2018

Setting bandwidth to any value bigger than ~20 mhz does not result in any data in the waterfall for frequencies over 20 mhz away from the center frequency.

This simple patch provides more bandwidth (however i am not sure if it is the correct way).


diff --git a/liblms7002m.c b/liblms7002m.c
index 95fc8de..9df8407 100644
--- a/liblms7002m.c
+++ b/liblms7002m.c
@@ -1241,7 +1241,7 @@ int lms7_rbb_set_lpfx_bandwidth(struct lms7_state* st, unsigned bw)
        enum rbb_path path;
        int res;
 
-       path = RBB_LB_LBF;
+       path = bw > 20000000 ? RBB_LB_HBF : RBB_LB_LBF;
 
        int rcc_ctl_lpfl_rbb = 0;
        int c_ctl_lpfl_rbb = (int)(2160000000U/bw - 103);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant