the usrp inband code uses long for the rf-freq dict entry. As max(long) =~ 
2e9, this does not work for ISM and 5GHz boards.

Stefan
-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
mailto:lurch at gmx.li  http://www.kawo1.rwth-aachen.de/~lurchi/
   phone: +49 241 53809034     mobile: +49 151 50412019
Index: usrp/host/lib/inband/usrp_usb_interface.h
===================================================================
--- usrp/host/lib/inband/usrp_usb_interface.h	(revision 9637)
+++ usrp/host/lib/inband/usrp_usb_interface.h	(working copy)
@@ -49,7 +49,7 @@
   long d_interp_tx;
   long d_decim_rx;
 
-  long d_rf_freq;
+  double d_rf_freq;
 
   std::string d_rbf;
 
Index: usrp/host/lib/inband/usrp_usb_interface.cc
===================================================================
--- usrp/host/lib/inband/usrp_usb_interface.cc	(revision 9637)
+++ usrp/host/lib/inband/usrp_usb_interface.cc	(working copy)
@@ -111,7 +111,7 @@
                                 pmt_intern("rf-freq"), 
                                 PMT_NIL)) {
       if(!pmt_eqv(rf_freq, PMT_NIL)) 
-        d_rf_freq = pmt_to_long(rf_freq);
+        d_rf_freq = pmt_to_double(rf_freq);
     }
   }
   
Index: usrp/host/apps-inband/test_usrp_inband_tx.cc
===================================================================
--- usrp/host/apps-inband/test_usrp_inband_tx.cc	(revision 9637)
+++ usrp/host/apps-inband/test_usrp_inband_tx.cc	(working copy)
@@ -126,7 +126,7 @@
 
   pmt_dict_set(usrp_dict,
                pmt_intern("rf-freq"),
-               pmt_from_long(10e6));
+               pmt_from_double(10e6));
 
   define_component("server", "usrp_server", usrp_dict);
 
_______________________________________________
Patch-gnuradio mailing list
Patch-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/patch-gnuradio

Reply via email to