Revision c30cbf65

b/host/lib/usrp/usrp1/usrp1_iface.cpp
122 122
                                                      buff,
123 123
                                                      bytes.size());
124 124

  
125
        if (ret < 0)
125
        // TODO throw and catch i2c failures during eeprom read
126
        if (iface_debug && (ret < 0))
126 127
            std::cerr << "USRP: failed i2c write: " << ret << std::endl;
127 128
    }
128 129

  
......
137 138
                                                     buff,
138 139
                                                     num_bytes);
139 140

  
140
        if ((ret < 0) || (unsigned)ret < (num_bytes)) {
141
        // TODO throw and catch i2c failures during eeprom read
142
        if (iface_debug && ((ret < 0) || (unsigned)ret < (num_bytes))) {
141 143
            std::cerr << "USRP: failed i2c read: " << ret << std::endl;
142 144
            return byte_vector_t(num_bytes, 0xff); 
143 145
        }

Also available in: Unified diff