summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2020-02-03 13:54:31 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2020-02-03 13:54:31 -0600
commit24cd1e066310ebabe6968c28d9ee2cd87bd28e26 (patch)
treefa2760dfd9de48013934ca71e4288732f5f31832
parent1f3107208237455215c840956a371c195b68fee7 (diff)
downloadlora_gateway_mtac_full-24cd1e066310ebabe6968c28d9ee2cd87bd28e26.tar.gz
lora_gateway_mtac_full-24cd1e066310ebabe6968c28d9ee2cd87bd28e26.tar.bz2
lora_gateway_mtac_full-24cd1e066310ebabe6968c28d9ee2cd87bd28e26.zip
Added guard around printing attenuator setting
-rw-r--r--util_tx_continuous/src/util_tx_continuous.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util_tx_continuous/src/util_tx_continuous.c b/util_tx_continuous/src/util_tx_continuous.c
index e3b3179..6cf2999 100644
--- a/util_tx_continuous/src/util_tx_continuous.c
+++ b/util_tx_continuous/src/util_tx_continuous.c
@@ -449,7 +449,10 @@ int main(int argc, char **argv)
printf("ERROR: undefined radio type\n");
break;
}
- printf("Attenuation : %d dB\n", g_atten);
+
+ if (fpga_supports_attenuator()) {
+ printf("Attenuation : %d dB\n", g_atten);
+ }
printf("Frequency: %4.3f MHz\n", freq_hz/1e6);
printf("TX Gains: Digital:%d DAC:%d Mixer:%d PA:%d\n", g_dig, g_dac, g_mix, g_pa);
if (strcmp(mod, "CW") != 0) {