Allow to set a specific thermal profile at start-up time

This commit is contained in:
Denis 2024-01-07 18:02:09 +01:00
parent cb9b5e5c4a
commit d608d07d89
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
6 changed files with 20 additions and 4 deletions

View file

@ -62,6 +62,13 @@ void load_in_config(dev_in_settings_t *const out_conf, const char* const filepat
fprintf(stderr, "enable_thermal_profiles_switching (bool) configuration not found. Default value will be used.\n");
}
int default_thermal_profile;
if (config_lookup_int(&cfg, "default_thermal_profile", &default_thermal_profile) != CONFIG_FALSE) {
out_conf->default_thermal_profile = default_thermal_profile;
} else {
fprintf(stderr, "default_thermal_profile (int) configuration not found. Default value will be used.\n");
}
int enable_leds_commands;
if (config_lookup_bool(&cfg, "enable_leds_commands", &enable_leds_commands) != CONFIG_FALSE) {
out_conf->enable_leds_commands = enable_leds_commands;