Skip to content

Commit

Permalink
fix invalid const names
Browse files Browse the repository at this point in the history
  • Loading branch information
Univa committed Dec 19, 2023
1 parent 4d5e989 commit 4048ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rumcake/src/via/protocol_12/keycodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ pub(crate) fn convert_action_to_keycode<K: ViaKeyboard>(action: Action<Keycode>)
},
#[cfg(feature = "simple-backlight")]
Keycode::SimpleBacklight(command) => {
if let Some(BacklightType::SimpleBacklight) = K::BacklightType {
if let Some(BacklightType::SimpleBacklight) = K::BACKLIGHT_TYPE {
return match command {
crate::backlight::simple_backlight::animations::BacklightCommand::TurnOn => {
QMKKeycodes::QK_BACKLIGHT_ON as u16
Expand Down Expand Up @@ -1158,7 +1158,7 @@ pub(crate) fn convert_action_to_keycode<K: ViaKeyboard>(action: Action<Keycode>)
}
#[cfg(feature = "rgb-backlight-matrix")]
Keycode::RGBBacklightMatrix(command) => {
if let Some(BacklightType::RGBBacklightMatrix) = K::BacklightType {
if let Some(BacklightType::RGBBacklightMatrix) = K::BACKLIGHT_TYPE {
return match command {
crate::backlight::rgb_backlight_matrix::animations::BacklightCommand::TurnOn => {
QMKKeycodes::QK_BACKLIGHT_ON as u16
Expand Down

0 comments on commit 4048ff7

Please sign in to comment.