laforge
/
openbts-osmo
Archived
1
0
Fork 0

Transceiver: correctly exit if USRP is not found.

(cherry picked from commit 8880f019e8071eb7f43f3727ab5414f744aedc4b)
This commit is contained in:
Alexander Chemeris 2010-11-26 01:01:45 +03:00
parent 91d16c65b7
commit 2c0be6d746
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ int main(int argc, char *argv[])
srandom(time(NULL));
USRPDevice *usrp = new USRPDevice(1625.0e3/6.0); //533.333333333e3); //400e3);
usrp->make();
if (!usrp->make()) {
delete usrp;
return EXIT_FAILURE;
}
RadioInterface* radio = new RadioInterface(usrp,3);
Transceiver *trx = new Transceiver(5700,"127.0.0.1",SAMPSPERSYM,GSM::Time(2,0),radio);
trx->receiveFIFO(radio->receiveFIFO());