commit | 01c6afd49501e53fd5b01f6ee9818811db69f82b | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Thu Oct 19 01:14:24 2017 +0700 |
committer | Piotr Krysik <ptrkrysik@users.noreply.github.com> | Sun Nov 05 17:33:26 2017 +0100 |
tree | d1280b93e30c004b8a215e67f290c126b09fb445 | |
parent | da5e21f1234b00435834e98e47db7901d98afe91 [diff] [blame] |
trx/radio_if.py: fix RX / TX gain control
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py index 559c309..d8c0444 100644 --- a/python/trx/radio_if.py +++ b/python/trx/radio_if.py
@@ -126,6 +126,10 @@ self.fc_set = True self.fc = fc - def set_gain(self, gain): + def set_rx_gain(self, gain): self.phy.set_gain(gain, 0) - self.gain = gain + self.rx_gain = gain + + def set_tx_gain(self, gain): + # TODO: TX chain not implemented yet + self.tx_gain = gain