Transceiver.cpp: fix incorrect format string for SETTSC

Change-Id: If69a478121a31aa7df945548cc17271c476d6a6b
This commit is contained in:
Vadim Yanitskiy 2018-03-09 05:01:21 +07:00 committed by Harald Welte
parent a62fcf786a
commit 8c6c5d2bcd
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ void Transceiver::driveControl(size_t chan)
} else if (match_cmd(command, "SETTSC", &params)) {
// set TSC
unsigned TSC;
sscanf(params, "%d", &TSC);
sscanf(params, "%u", &TSC);
if (TSC > 7) {
sprintf(response, "RSP SETTSC 1 %d", TSC);
} else {