Changeset 6067

Show
Ignore:
Timestamp:
07/26/07 08:29:24
Author:
jcorgan
Message:

Applied changeset r5576 on trunk to release branch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/releases/3.0/usrp/host/lib/usrp_basic.cc

    r6065 r6067  
    542542  bool ok = usrp_basic::stop(); 
    543543 
     544  if (!set_rx_enable(false)){ 
     545    fprintf (stderr, "usrp_basic_rx: set_rx_enable(false) failed\n"); 
     546    usb_strerror (); 
     547    ok = false; 
     548  } 
     549 
    544550  if (!d_ephandle->stop()){ 
    545551    fprintf (stderr, "usrp_basic_rx: failed to stop end point streaming"); 
     
    547553    ok = false; 
    548554  } 
    549   if (!set_rx_enable(false)){ 
    550     fprintf (stderr, "usrp_basic_rx: set_rx_enable(false) failed\n"); 
    551     usb_strerror (); 
    552     ok = false; 
    553   } 
    554   return false; 
     555 
     556  return ok; 
    555557} 
    556558 
     
    971973  bool ok = usrp_basic::stop (); 
    972974 
     975  if (!d_ephandle->stop ()){ 
     976    fprintf (stderr, "usrp_basic_tx: failed to stop end point streaming"); 
     977    usb_strerror (); 
     978    ok = false; 
     979  } 
     980 
    973981  if (!set_tx_enable (false)){ 
    974982    fprintf (stderr, "usrp_basic_tx: set_tx_enable(false) failed\n"); 
     
    976984    ok = false; 
    977985  } 
    978   if (!d_ephandle->stop ()){ 
    979     fprintf (stderr, "usrp_basic_tx: failed to stop end point streaming"); 
    980     usb_strerror (); 
    981     ok = false; 
    982   } 
     986 
    983987  return ok; 
    984988}