Skip to content

Commit

Permalink
chore: temp dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 24, 2023
1 parent b20975a commit e78c9bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/src/ps_move/effects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ impl LedEffectKind {

/// Returns Some when the Hsv has changed (note: some effects always change, such as Breathing, others never change like static)
pub fn get_updated_hsv(&mut self, current_hsv: Hsv) -> Option<Hsv> {
match *self {
LedEffectKind::Off | LedEffectKind::Static => None,
Some(match *self {
LedEffectKind::Off | LedEffectKind::Static => { return None },
LedEffectKind::Breathing {
initial_hsv,
time_to_peak,
Expand Down Expand Up @@ -253,7 +253,7 @@ impl LedEffectKind {
*LED_OFF
}
} else {
None
return None
}
}
LedEffectKind::Candle {
Expand All @@ -274,10 +274,10 @@ impl LedEffectKind {

Hsv::from_components((hue, saturation, new_value))
} else {
None
return None
}
}
}
})
}

fn get_updated_breathing_hsv(
Expand Down

0 comments on commit e78c9bd

Please sign in to comment.