diff options
-rw-r--r-- | host/docs/calibration.dox | 18 | ||||
-rw-r--r-- | host/lib/utils/paths.cpp | 2 |
2 files changed, 14 insertions, 6 deletions
diff --git a/host/docs/calibration.dox b/host/docs/calibration.dox index 603ae22e4..eecb7af5c 100644 --- a/host/docs/calibration.dox +++ b/host/docs/calibration.dox @@ -57,15 +57,23 @@ daughterboard's EEPROM: : \subsection calibration_data Calibration Data -Calibration files are stored in the user's home/application directory. -They can easily be moved from machine to another by copying the "cal" -directory. Re-running a calibration utility will replace the existing -calibration file. The old calibration file will be renamed so it may be -recovered by the user. +By default, calibration files are stored in the user's home/application +directory: - **Linux:** `${HOME}/.uhd/cal/` - **Windows:** `%APPDATA%\.uhd\cal\` +If you would like to specify a custom directory, you can do so with the +`$UHD_CONFIG_DIR` environment variable: + +- **Custom (any OS):** `${UHD_CONFIG_DIR}/.uhd/cal/` + +Calibration files can easily be moved from one machine to another by copying the +"cal" directory. Re-running a calibration utility will replace the existing +calibration file. The old calibration file will be renamed so it may be +recovered by the user. + + \subsection ignore_cal_file Ignoring Calibration Files At runtime, the user can choose to ignore a daughterboard's calibration file by adding "ignore-cal-file" to the arguments. With the UHD API, it can be done as follows: diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp index 235c2607d..88bd25fbd 100644 --- a/host/lib/utils/paths.cpp +++ b/host/lib/utils/paths.cpp @@ -173,7 +173,7 @@ std::string uhd::get_tmp_path(void){ } std::string uhd::get_app_path(void){ - const std::string uhdcalib_path = get_env_var("UHDCALIBPATH"); + const std::string uhdcalib_path = get_env_var("UHD_CONFIG_DIR"); if (not uhdcalib_path.empty()) return uhdcalib_path; const std::string appdata_path = get_env_var("APPDATA"); |