Added make install routine; Configreader settings.cfg points now to /etc/humitiypi/settings.cfg

This commit is contained in:
2017-09-07 18:11:41 +02:00
parent 95bd30ec63
commit e6ce8e49a3
3 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ const config_setting_t *compareIDs;
void cfginit(void) {
config_init(&cfg);
if (!config_read_file(&cfg, "./settings.cfg")) {
if (!config_read_file(&cfg, "/etc/humiditypi/settings.cfg")) {
fprintf(stderr, "%s:%d - %s\n", config_error_file(&cfg), config_error_line(&cfg), config_error_text(&cfg));
config_destroy(&cfg);
//return(EXIT_FAILURE);