From c8c4eac55e4f44ead12489bda308ba361bb723f2 Mon Sep 17 00:00:00 2001 From: Tom Tsou Date: Tue, 28 Jun 2016 17:00:54 -0700 Subject: 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 Signed-off-by: Tom Tsou --- Transceiver52M/Transceiver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Transceiver52M') 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); -- cgit v1.2.3