diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:25:13 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 876d4150aa3da531ddd687b48afada6e43f79146 (patch) | |
tree | fd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/utils/b2xx_fx3_utils.cpp | |
parent | 1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff) | |
download | uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2 uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip |
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
Diffstat (limited to 'host/utils/b2xx_fx3_utils.cpp')
-rw-r--r-- | host/utils/b2xx_fx3_utils.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/host/utils/b2xx_fx3_utils.cpp b/host/utils/b2xx_fx3_utils.cpp index e495262be..efeecd984 100644 --- a/host/utils/b2xx_fx3_utils.cpp +++ b/host/utils/b2xx_fx3_utils.cpp @@ -79,7 +79,8 @@ const uhd::byte_vector_t EEPROM_DATA_HEADER = { } // namespace //! used with lexical cast to parse a hex string -template <class T> struct to_hex +template <class T> +struct to_hex { T value; operator T() const @@ -628,9 +629,9 @@ int32_t main(int32_t argc, char* argv[]) << std::endl; // Read values that will be clobbered by the bootloader - auto pidvid = b200->read_eeprom(0x00, 0x04, 4); + auto pidvid = b200->read_eeprom(0x00, 0x04, 4); uhd::byte_vector_t vidpid = {pidvid[2], pidvid[3], pidvid[0], pidvid[1]}; - auto eeprom_data = b200->read_eeprom(0x04, 0xDC, 36); + auto eeprom_data = b200->read_eeprom(0x04, 0xDC, 36); // Write in default header b200->write_eeprom( |