diff options
| author | Josh Blum <josh@joshknows.com> | 2013-03-26 14:30:21 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2013-03-26 14:30:21 -0700 | 
| commit | 587a9586c74753f1083fbf26eddd880ce082eea0 (patch) | |
| tree | 5fa6fc754354658861faf26039d83c449af810dc | |
| parent | eaddcc4bb137fc58102555e847bd0185c226508e (diff) | |
| parent | 0cce80c1ef2bcdb5094d579a6853261cebd2ec03 (diff) | |
| download | uhd-587a9586c74753f1083fbf26eddd880ce082eea0.tar.gz uhd-587a9586c74753f1083fbf26eddd880ce082eea0.tar.bz2 uhd-587a9586c74753f1083fbf26eddd880ce082eea0.zip | |
Merge branch 'maint'
| -rw-r--r-- | host/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | host/cmake/Modules/UHDVersion.cmake | 2 | ||||
| -rw-r--r-- | host/utils/usrp_n2xx_simple_net_burner.cpp | 25 | 
3 files changed, 17 insertions, 12 deletions
| diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 78b8b4255..8bc761c42 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -198,7 +198,7 @@ INSTALL(FILES  # Images download directory for utils/uhd_images_downloader.py  ######################################################################## -SET(UHD_IMAGES_DOWNLOAD_SRC "http://files.ettus.com/binaries/maint_images/archive/uhd-images_003.005.001-release.zip") +SET(UHD_IMAGES_DOWNLOAD_SRC "http://files.ettus.com/binaries/maint_images/archive/uhd-images_003.005.002-release.zip")  ########################################################################  # Register top level components diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake index 6c2d7e36e..a31acac3f 100644 --- a/host/cmake/Modules/UHDVersion.cmake +++ b/host/cmake/Modules/UHDVersion.cmake @@ -27,7 +27,7 @@ FIND_PACKAGE(Git QUIET)  ########################################################################  SET(UHD_VERSION_MAJOR 003)  SET(UHD_VERSION_MINOR 005) -SET(UHD_VERSION_PATCH 001) +SET(UHD_VERSION_PATCH 002)  ########################################################################  # Set up DLL resource version numbers diff --git a/host/utils/usrp_n2xx_simple_net_burner.cpp b/host/utils/usrp_n2xx_simple_net_burner.cpp index 901842538..9f5700d9b 100644 --- a/host/utils/usrp_n2xx_simple_net_burner.cpp +++ b/host/utils/usrp_n2xx_simple_net_burner.cpp @@ -1,5 +1,5 @@  // -// Copyright 2012 Ettus Research LLC +// Copyright 2012-2013 Ettus Research LLC  //  // This program is free software: you can redistribute it and/or modify  // it under the terms of the GNU General Public License as published by @@ -368,6 +368,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){          ("fpga", po::value<std::string>(&fpga_path), "Specify a filepath for a custom FPGA image.")          ("no_fw", "Do not burn a firmware image.")          ("no_fpga", "Do not burn an FPGA image.") +        ("auto_reboot", "Automatically reboot N2XX without prompting.")          ("list", "List available N2XX USRP devices.")      ;      po::variables_map vm; @@ -388,6 +389,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){      bool use_custom_fpga = (vm.count("fpga") > 0);      bool use_custom_fw = (vm.count("fw") > 0);      bool list_usrps = (vm.count("list") > 0); +    bool auto_reboot = (vm.count("auto_reboot") > 0);      if(!burn_fpga && !burn_fw){          std::cout << "No images will be burned." << std::endl; @@ -501,16 +503,19 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){          verify_image(udp_transport, true, fw_image, flash_info[1], fw_image_size);      } -    //Prompt user to reset USRP -    std::string user_response = "foo"; -    bool reset = false; -    while(user_response != "y" and user_response != "" and user_response != "n"){ -        std::cout << std::endl << "Image burning successful. Reset USRP (Y/n)? "; -        std::getline(std::cin, user_response); -        std::transform(user_response.begin(), user_response.end(), user_response.begin(), ::tolower); -        reset = (user_response == "" or user_response == "y"); +    //Reset USRP N2XX +    bool reset; +    if(auto_reboot) reset = true; +    else{ +        std::string user_response = "foo"; +        while(user_response != "y" and user_response != "" and user_response != "n"){ +            std::cout << std::endl << "Image burning successful. Reset USRP (Y/n)? "; +            std::getline(std::cin, user_response); +            std::transform(user_response.begin(), user_response.end(), user_response.begin(), ::tolower); +            reset = (user_response == "" or user_response == "y"); +        } +        std::cout << std::endl; //Formatting      } -    std::cout << std::endl; //Formatting      if(reset) reset_usrp(udp_transport);      else return EXIT_SUCCESS; | 
