diff --git a/host/cores/apply_corrections.cpp b/host/cores/apply_corrections.cpp index 54ae9ed9..4a19c49c 100644 --- a/host/cores/apply_corrections.cpp +++ b/host/cores/apply_corrections.cpp @@ -104,7 +104,7 @@ static void apply_fe_corrections( const uhd::usrp::dboard_eeprom_t db_eeprom = sub_tree->access(db_path).get(); //make the calibration file path - const fs::path cal_data_path = fs::path(uhd::get_app_path()) / ".uhd" / "cal" / (file_prefix + db_eeprom.serial + ".csv"); + const fs::path cal_data_path = fs::path(uhd::get_cal_data_path()) / (file_prefix + db_eeprom.serial + ".csv"); UHD_MSG(status) << "Looking for FE correction at: " << cal_data_path.c_str() << "... "; if (not fs::exists(cal_data_path)) { UHD_MSG(status) << "Not found" << std::endl; diff --git a/host/utils/usrp_cal_utils.hpp b/host/utils/usrp_cal_utils.hpp index 726e3cbc..40ba2584 100644 --- a/host/utils/usrp_cal_utils.hpp +++ b/host/utils/usrp_cal_utils.hpp @@ -138,9 +138,7 @@ static void store_results( std::string serial = get_serial(usrp, rx_tx); //make the calibration file path - fs::path cal_data_path = fs::path(uhd::get_app_path()) / ".uhd"; - fs::create_directory(cal_data_path); - cal_data_path = cal_data_path / "cal"; + fs::path cal_data_path = fs::path(uhd::get_cal_data_path()); fs::create_directory(cal_data_path); cal_data_path = cal_data_path / str(boost::format("%s_%s_cal_v0.2_%s.csv") % rx_tx % what % serial); if (fs::exists(cal_data_path)){