diff options
author | Josh Blum <josh@joshknows.com> | 2013-03-25 13:12:55 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-03-25 13:12:55 -0700 |
commit | c5223d192205f729b316197c83fc69eb67b6ee45 (patch) | |
tree | 046c5a05cedeb7b37e4fc427323ba119b10688d2 /host/lib/usrp/common | |
parent | 5afa521724c6b27c1daa014316ac4a5a9efa4c82 (diff) | |
download | uhd-c5223d192205f729b316197c83fc69eb67b6ee45.tar.gz uhd-c5223d192205f729b316197c83fc69eb67b6ee45.tar.bz2 uhd-c5223d192205f729b316197c83fc69eb67b6ee45.zip |
usrp1: fix eeprom write capability through fx2
The vectorized eeprom write was faster but broken,
removed overload which falls back to the one byte at a time.
Diffstat (limited to 'host/lib/usrp/common')
-rw-r--r-- | host/lib/usrp/common/fx2_ctrl.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/host/lib/usrp/common/fx2_ctrl.cpp b/host/lib/usrp/common/fx2_ctrl.cpp index 93303542e..1f9cb84b3 100644 --- a/host/lib/usrp/common/fx2_ctrl.cpp +++ b/host/lib/usrp/common/fx2_ctrl.cpp @@ -410,17 +410,6 @@ public: return usrp_control_write(request, value, index, 0, 0); } - void write_eeprom( - boost::uint8_t addr, - boost::uint8_t offset, - const byte_vector_t &bytes - ){ - byte_vector_t bytes_with_cmd(bytes.size() + 1); - bytes_with_cmd[0] = offset; - std::copy(bytes.begin(), bytes.end(), &bytes_with_cmd[1]); - this->write_i2c(addr, bytes_with_cmd); - } - byte_vector_t read_eeprom( boost::uint8_t addr, boost::uint8_t offset, |