diff --git a/house/src/lib.rs b/house/src/lib.rs index e8e9901..b0fe051 100644 --- a/house/src/lib.rs +++ b/house/src/lib.rs @@ -16,6 +16,7 @@ pub struct Harrogate { pub porch_front: PF, } +#[inline] fn white_balance(HardwareRgb(r, g, b): HardwareRgb, white: Rgb) -> HardwareRgb { let Rgb(r, g, b) = Rgb(r, g, b) * white; HardwareRgb(r, g, b) @@ -26,6 +27,7 @@ where PB: IntoIterator, PF: IntoIterator, { + #[inline] pub fn render_to>(self, lights: &mut L) { let mut buffer = [HardwareRgb(255,0,255); PORCH_BACK_LEN + PORCH_FRONT_LEN];