diff options
author | ttsou <ttsou@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2012-12-16 20:35:01 +0000 |
---|---|---|
committer | ttsou <ttsou@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2012-12-16 20:35:01 +0000 |
commit | 5298de12ee4d7625fa5da2b036829fc0c2f8502b (patch) | |
tree | d2ed4dde88e21b5cc07086171f650d484ee6989c /Transceiver52M/runTransceiver.cpp | |
parent | 8fd86a50e53d8a55a2f1f76db143dab73ede045e (diff) |
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 <tom@tsou.cc>
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4633 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M/runTransceiver.cpp')
-rw-r--r-- | Transceiver52M/runTransceiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp index b95c28e..44950d7 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; |