diff options
-rw-r--r-- | mpm/lib/mykonos/ad937x_device.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mpm/lib/mykonos/ad937x_device.cpp b/mpm/lib/mykonos/ad937x_device.cpp index 144b813ae..6bf22059b 100644 --- a/mpm/lib/mykonos/ad937x_device.cpp +++ b/mpm/lib/mykonos/ad937x_device.cpp @@ -551,12 +551,10 @@ double ad937x_device::set_bw_filter(const direction_t direction, const double va double ad937x_device::set_gain( const direction_t direction, const chain_t chain, const double value) { - double coerced_value; const auto state = _move_to_config_state(); switch (direction) { case TX_DIRECTION: { const uint16_t attenuation = _convert_tx_gain_to_mykonos(value); - coerced_value = static_cast<double>(attenuation); std::function<mykonosErr_t(mykonosDevice_t*, uint16_t)> func; switch (chain) { @@ -574,7 +572,6 @@ double ad937x_device::set_gain( } case RX_DIRECTION: { const uint8_t gain = _convert_rx_gain_to_mykonos(value); - coerced_value = static_cast<double>(gain); std::function<mykonosErr_t(mykonosDevice_t*, uint8_t)> func; switch (chain) { |