mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix incorrect name match of Star keyboard effect
This commit is contained in:
@@ -124,6 +124,8 @@ pub struct MultiColourSpeed {
|
|||||||
/// Byte value for setting the built-in mode.
|
/// Byte value for setting the built-in mode.
|
||||||
///
|
///
|
||||||
/// Enum corresponds to the required integer value
|
/// Enum corresponds to the required integer value
|
||||||
|
///
|
||||||
|
// NOTE: The option names here must match those in rog-aura crate
|
||||||
#[derive(Options)]
|
#[derive(Options)]
|
||||||
pub enum SetAuraBuiltin {
|
pub enum SetAuraBuiltin {
|
||||||
#[options(help = "set a single static colour")]
|
#[options(help = "set a single static colour")]
|
||||||
@@ -135,7 +137,7 @@ pub enum SetAuraBuiltin {
|
|||||||
#[options(help = "rainbow cycling in one of four directions")]
|
#[options(help = "rainbow cycling in one of four directions")]
|
||||||
Rainbow(SingleSpeedDirection),
|
Rainbow(SingleSpeedDirection),
|
||||||
#[options(help = "rain pattern mimicking raindrops")]
|
#[options(help = "rain pattern mimicking raindrops")]
|
||||||
Star(TwoColourSpeed),
|
Stars(TwoColourSpeed),
|
||||||
#[options(help = "rain pattern of three preset colours")]
|
#[options(help = "rain pattern of three preset colours")]
|
||||||
Rain(SingleSpeed),
|
Rain(SingleSpeed),
|
||||||
#[options(help = "pressed keys are highlighted to fade")]
|
#[options(help = "pressed keys are highlighted to fade")]
|
||||||
@@ -233,7 +235,7 @@ impl From<&SetAuraBuiltin> for AuraEffect {
|
|||||||
data.mode = AuraModeNum::Rainbow;
|
data.mode = AuraModeNum::Rainbow;
|
||||||
data
|
data
|
||||||
}
|
}
|
||||||
SetAuraBuiltin::Star(x) => {
|
SetAuraBuiltin::Stars(x) => {
|
||||||
let mut data: AuraEffect = x.into();
|
let mut data: AuraEffect = x.into();
|
||||||
data.mode = AuraModeNum::Star;
|
data.mode = AuraModeNum::Star;
|
||||||
data
|
data
|
||||||
|
|||||||
Reference in New Issue
Block a user