trx/radio_if.py: do not print anything if freq. shift is 0
Change-Id: I100ce2ab8effc00e164e13253894445bdc816f06
This commit is contained in:
parent
180a037a41
commit
8bd9e15c66
|
@ -276,6 +276,7 @@ class RadioInterface(gr.top_block):
|
|||
return self.ppm / 1.0e6 * 2 * pi * fc / self.sample_rate
|
||||
|
||||
def set_rx_freq(self, fc):
|
||||
if self.freq_offset != 0:
|
||||
fc += self.freq_offset
|
||||
print("[#] Shifting RX freq. to %s (offset is %s)"
|
||||
% (eng_notation.num_to_str(fc),
|
||||
|
@ -285,6 +286,7 @@ class RadioInterface(gr.top_block):
|
|||
self.rx_freq = fc
|
||||
|
||||
def set_tx_freq(self, fc):
|
||||
if self.freq_offset != 0:
|
||||
fc += self.freq_offset
|
||||
print("[#] Shifting TX freq. to %s (offset is %s)"
|
||||
% (eng_notation.num_to_str(fc),
|
||||
|
|
Loading…
Reference in New Issue