Skip to content

Commit

Permalink
fix: split keyboard compilations without lighting features
Browse files Browse the repository at this point in the history
  • Loading branch information
Univa committed Apr 6, 2024
1 parent a73d77b commit c52a9c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rumcake/src/split/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ impl TryFrom<MessageToCentral> 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
Expand Down

0 comments on commit c52a9c7

Please sign in to comment.