diff options
| author | Josh Blum <josh@joshknows.com> | 2011-09-28 17:57:29 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2011-09-28 17:57:57 -0700 | 
| commit | 1b577977acdf456ec2cac31a1cb31de148b01b53 (patch) | |
| tree | b62a1e2f90e4be9c3cc35cd057584bab40f435e8 | |
| parent | 98ed4be20c8d21b8232fd85d414fdcd89edf7776 (diff) | |
| download | uhd-1b577977acdf456ec2cac31a1cb31de148b01b53.tar.gz uhd-1b577977acdf456ec2cac31a1cb31de148b01b53.tar.bz2 uhd-1b577977acdf456ec2cac31a1cb31de148b01b53.zip | |
usrp2: give users a warning for gpsdo support + fw update
| -rw-r--r-- | host/lib/usrp/usrp2/usrp2_iface.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp index 64a1a7474..5e9759ba5 100644 --- a/host/lib/usrp/usrp2/usrp2_iface.cpp +++ b/host/lib/usrp/usrp2/usrp2_iface.cpp @@ -95,6 +95,13 @@ public:          _protocol_compat = ntohl(ctrl_data.proto_ver);          mb_eeprom = mboard_eeprom_t(*this, mboard_eeprom_t::MAP_N100); + +        //----------------------- special temporary warning ------------ +        if (mb_eeprom["gpsdo"] == "internal" and _protocol_compat < USRP2_FW_COMPAT_NUM){ +            UHD_MSG(warning) << "You must upgrade your USRP's firmware to use the GPSDO" << std::endl; +        } +        //-------------------------------------------------------------- +      }      ~usrp2_iface_impl(void){UHD_SAFE_CALL( | 
