aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2016-06-28 17:00:54 -0700
committerTom Tsou <tom.tsou@ettus.com>2016-06-28 17:08:34 -0700
commitc8c4eac55e4f44ead12489bda308ba361bb723f2 (patch)
tree697544d3f6e187757a44c293be1db02eac654c8e
parent37c52c79cf915fcbbf5cc932429d8a5c3a15a8d1 (diff)
transceiver: Do not report error on SETTSC when radio is on
OsmoTRX does not support the use of multiple TSC settings per internal TRX instance. There should not be an error to modifiy the TSC value after POWERON. Setting TSC value on TRX channels other then 0 is a NOP operation that should only error if the requested TSC differs from that of TRX channel 0. Reported-by: Max <msuraev@sysmocom.de> Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
-rw-r--r--Transceiver52M/Transceiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index cb191d5..d4ca4b9 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -827,7 +827,7 @@ void Transceiver::driveControl(size_t chan)
// set TSC
unsigned TSC;
sscanf(buffer, "%3s %s %d", cmdcheck, command, &TSC);
- if (mOn || (TSC < 0) || (TSC > 7))
+ if ((TSC < 0) || (TSC > 7))
sprintf(response, "RSP SETTSC 1 %d", TSC);
else if (chan && (TSC != mTSC))
sprintf(response, "RSP SETTSC 1 %d", TSC);