Fix build issues

This commit is contained in:
Martijn Braam
2023-07-25 14:05:28 +02:00
parent 7941becb17
commit 59f18d7bd2
2 changed files with 3 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ find_calibration_by_model(char *conffile, char *model, const char *sensor)
// Check user overridden /etc/megapixels/config/%model,%sensor.dcp
sprintf(conffile,
"%s/megapixels/config/%s,%s.dcp",
SYSCONFDIR,
"/etc",
model,
sensor);
if (access(conffile, F_OK) != -1) {
@@ -172,7 +172,7 @@ find_calibration_by_model(char *conffile, char *model, const char *sensor)
}
// Check packaged /usr/share/megapixels/config/%model,%sensor.ini
sprintf(conffile, "%s/megapixels/config/%s,%s.dcp", DATADIR, model, sensor);
sprintf(conffile, "%s/megapixels/config/%s,%s.dcp", "/usr/share", model, sensor);
if (access(conffile, F_OK) != -1) {
printf("Found calibration file at %s\n", conffile);
return true;