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>
This commit is contained in:
parent
37c52c79cf
commit
c8c4eac55e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue