From 5298de12ee4d7625fa5da2b036829fc0c2f8502b Mon Sep 17 00:00:00 2001 From: ttsou Date: Sun, 16 Dec 2012 20:35:01 +0000 Subject: [PATCH] Transceiver52M: Properly pass samplerate to RadioDevice::make() Without this patch, if SAMPSPERSYM is set bigger than 1, then erratic behaviour will occur. Signed-off-by: Thomas Tsou git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4633 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- Transceiver52M/runTransceiver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp index b95c28ed..44950d7e 100644 --- a/Transceiver52M/runTransceiver.cpp +++ b/Transceiver52M/runTransceiver.cpp @@ -89,7 +89,7 @@ int main(int argc, char *argv[]) srandom(time(NULL)); int mOversamplingRate = numARFCN/2 + numARFCN; - RadioDevice *usrp = RadioDevice::make(DEVICERATE); + RadioDevice *usrp = RadioDevice::make(DEVICERATE * SAMPSPERSYM); if (!usrp->open(deviceArgs)) { LOG(ALERT) << "Transceiver exiting..." << std::endl; return EXIT_FAILURE;