* gotthard config file path using readlink

* gotthard2

* eiger

* eieger, mnythen3, moench

* binaries in

* moved readlink to a common function

* binaries in
This commit is contained in:
Dhanya Thattil
2020-07-23 12:17:46 +02:00
committed by GitHub
parent beb6afe101
commit ad297e9c51
15 changed files with 73 additions and 15 deletions

View File

@ -425,7 +425,14 @@ int readConfigFile() {
}
master = -1;
top = -1;
FILE *fd = fopen(CONFIG_FILE, "r");
char fname[128];
if (getAbsPath(fname, 128, CONFIG_FILE) == FAIL) {
return FAIL;
}
// open config file
FILE *fd = fopen(fname, "r");
if (fd == NULL) {
LOG(logINFO, ("No config file found. Resetting to hardware settings "
"(Top/Master)\n"));