Skip to content

Commit

Permalink
fix defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelLieb committed Mar 3, 2024
1 parent 5c2d297 commit ad4e38c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Config {

#[allow(dead_code)]
pub fn generate_template(file_path: &str) {
let mut template = Config{
let mut template = Config {
onset_detector: OnsetDetector::SpecFlux(Default::default()),
..Default::default()
};
Expand All @@ -223,6 +223,8 @@ impl Config {
template.hue.push(HueSettings {
ip: Some(Ipv4Addr::new(0, 0, 0, 0)),
area: Some("Area uuid".to_owned()),
timeout: HueSettings::default().timeout,
push_link_timeout: HueSettings::default().push_link_timeout,
..Default::default()
});
let toml = toml::to_string(&template).unwrap();
Expand Down

0 comments on commit ad4e38c

Please sign in to comment.