aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2013-11-27 12:59:53 -0800
committerBen Hilburn <ben.hilburn@ettus.com>2013-11-27 12:59:53 -0800
commitbbb8afcf03a65dcc5dbe1beb80879da343944b49 (patch)
tree039d636ce31622f8429014d85ea4b1fe477b3198 /host/utils
parent99503d00193517e5d2202c7f8b9dd59a36a94006 (diff)
parented765d904266585481eb0a7a4eb5b45fd031f95c (diff)
downloaduhd-bbb8afcf03a65dcc5dbe1beb80879da343944b49.tar.gz
uhd-bbb8afcf03a65dcc5dbe1beb80879da343944b49.tar.bz2
uhd-bbb8afcf03a65dcc5dbe1beb80879da343944b49.zip
Merge Corgan's branch 'origin/n2xx/net_burner_path_fix'
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/usrp_n2xx_simple_net_burner.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/host/utils/usrp_n2xx_simple_net_burner.cpp b/host/utils/usrp_n2xx_simple_net_burner.cpp
index c3ccba173..1898ee9ae 100644
--- a/host/utils/usrp_n2xx_simple_net_burner.cpp
+++ b/host/utils/usrp_n2xx_simple_net_burner.cpp
@@ -468,13 +468,21 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::cout << "Searching for specified images." << std::endl << std::endl;
if(burn_fpga){
if(!use_custom_fpga) fpga_path = find_image_path(default_fpga_filename);
- else validate_custom_fpga_file(filename_map[hw_rev], fpga_path);
+ else{
+ //Replace ~ with home directory
+ if(fpga_path.find("~/") == 0) fpga_path.replace(0,1,getenv("HOME"));
+ validate_custom_fpga_file(filename_map[hw_rev], fpga_path);
+ }
grab_fpga_image(fpga_path);
}
if(burn_fw){
if(!use_custom_fw) fw_path = find_image_path(default_fw_filename);
- else validate_custom_fw_file(filename_map[hw_rev], fw_path);
+ else{
+ //Replace ~ with home directory
+ if(fw_path.find("~/") == 0) fw_path.replace(0,1,getenv("HOME"));
+ validate_custom_fw_file(filename_map[hw_rev], fw_path);
+ }
grab_fw_image(fw_path);
}