Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / lib / io / microtune_4702.cc
index 8d14c778035a1940712c2db121fbc59df6abb13b..59c88e26eeccf626ae800e482a953add2b54fccc 100644 (file)
@@ -6,7 +6,7 @@
  *
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  *
  * GNU Radio is distributed in the hope that it will be useful,
@@ -151,7 +151,7 @@ microtune_4702::set_RF_freq (double target_freq, double *p_actual_freq)
   buf[0] = ((divisor & 0x07f00) >> 8) & 0xff;  // DB1
   buf[1] = divisor & 0xff;             // DB2
   buf[2] = control_byte_1 (d_prescaler, d_reference_divider);
-  buf[2] = (buf[2]|(((divisor & 0x18000) >> 10)) & 0xff);
+  buf[2] = buf[2] | (((divisor & 0x18000) >> 10) & 0xff);
   buf[3] = control_byte_2 (target_freq);
 
   printf ("%x\n", PLL_I2C_ADDR);