From 876d4150aa3da531ddd687b48afada6e43f79146 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Mar 2020 15:25:13 -0800 Subject: 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. --- host/utils/b2xx_fx3_utils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'host/utils/b2xx_fx3_utils.cpp') 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 struct to_hex +template +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( -- cgit v1.2.3