From c52a9c7575ca7aee9fba242c4a8781185e424298 Mon Sep 17 00:00:00 2001 From: Univa <41708691+Univa@users.noreply.github.com> Date: Sat, 6 Apr 2024 09:32:00 -0400 Subject: [PATCH] fix: split keyboard compilations without lighting features --- rumcake/src/split/mod.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rumcake/src/split/mod.rs b/rumcake/src/split/mod.rs index dade424..bb2fac5 100644 --- a/rumcake/src/split/mod.rs +++ b/rumcake/src/split/mod.rs @@ -46,7 +46,15 @@ impl TryFrom for Event { /// Possible messages that can be sent to a peripheral device. #[derive(Serialize, Deserialize, Debug, Clone, Copy, MaxSize)] #[non_exhaustive] -#[repr(u8)] +#[cfg_attr( + any( + feature = "simple-backlight", + feature = "simple-backlight-matrix", + feature = "rgb-backlight-matrix", + feature = "underglow", + ), + repr(u8) +)] pub enum MessageToPeripheral { #[cfg(feature = "simple-backlight")] /// A [`SimpleBacklightCommand`](crate::lighting::simple_backlight::SimpleBacklightCommand) to