Skip to content

Commit

Permalink
fix layouts that use actions containing references
Browse files Browse the repository at this point in the history
this also happens to save a bunch of flash space when using via
  • Loading branch information
Univa committed Dec 6, 2023
1 parent 7e1d38a commit d05cf7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rumcake/src/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ macro_rules! build_layout {
// Pass the layers to the keyberon macro
($layers:literal, $rows:literal, $cols:literal, ($($l:tt)*)) => {
fn get_original_layout() -> $crate::keyberon::layout::Layers<{ Self::LAYOUT_COLS }, { Self::LAYOUT_ROWS }, { Self::LAYERS }, $crate::keyboard::Keycode> {
$crate::keyberon::layout::layout! { $($l)* }
const LAYERS: $crate::keyberon::layout::Layers<$cols, $rows, $layers, $crate::keyboard::Keycode> = $crate::keyberon::layout::layout! { $($l)* };
LAYERS
}

fn get_layout(
Expand Down

0 comments on commit d05cf7b

Please sign in to comment.