Ability to disable IMU

This commit is contained in:
Denis 2024-01-15 02:15:06 +01:00
parent f4f638ea24
commit 1866d65b9e
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
6 changed files with 17 additions and 3 deletions

View file

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