Commit e51772d7 authored by Astro's avatar Astro

l0dable: whitespace

parent ceff8d12
......@@ -36,7 +36,7 @@ where
/// Setting powersave mode disables the LEDs, saving
/// ~15 mA
pub fn set_rgb_leds_powersave(v: bool) {
unsafe{ epic_leds_set_powersave(v); }
unsafe { epic_leds_set_powersave(v); }
}
#[repr(i32)]
......@@ -51,5 +51,5 @@ pub enum Rocket {
/// Brightness should be 0 - 31; larger values will be clamped.
pub fn set_rocket(r: Rocket, brightness: u8) {
let v = if brightness > 31{31} else {brightness}; // clamp
unsafe{ epic_leds_set_rocket(r as i32, v) }
unsafe { epic_leds_set_rocket(r as i32, v) }
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment