# HG changeset patch # User Mychaela Falconia # Date 1500008590 0 # Node ID e35da125c9374d2dc60c46e9b687a84b0ea5e451 # Parent 4e263849b06447efbbf6d0e015d441d4e580864a fc-cmu200d: CMU200 external att setting implemented in RF analyzer mode diff -r 4e263849b064 -r e35da125c937 cmu200/rfanalyzer.c --- a/cmu200/rfanalyzer.c Fri Jul 14 04:52:03 2017 +0000 +++ b/cmu200/rfanalyzer.c Fri Jul 14 05:03:10 2017 +0000 @@ -24,7 +24,7 @@ { int rc; unsigned arfcn; - char cmdstr[32]; + char cmdstr[80]; if (client_cmd_nfields != 3) { send_socket_response("-Wrong number of arguments\n"); @@ -46,6 +46,10 @@ send_scpi_cmd(cmdstr); sprintf(cmdstr, "INP RF%d\n", cmu200_rf_port); send_scpi_cmd(cmdstr); + sprintf(cmdstr, "CORR:LOSS:INP%d %u.%u\n", cmu200_rf_port, + current_band->ul_cable_loss / 10, + current_band->ul_cable_loss % 10); + send_scpi_cmd(cmdstr); sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn); send_scpi_cmd(cmdstr); send_scpi_cmd("RFAN:TSEQ GSM5\n");