Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Fix #71
Browse files Browse the repository at this point in the history
  • Loading branch information
JosuGZ committed Jul 19, 2024
1 parent 2a2a87c commit cbb4dd6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions razer_control_gui/src/kbd/effects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Effect for Static {
#[derive(Copy, Clone)]
pub struct StaticGradient {
kbd: board::KeyboardData,
args: [u8; 7],
args: [u8; 6],
}

impl Effect for StaticGradient {
Expand All @@ -73,8 +73,8 @@ impl Effect for StaticGradient {
Self: Sized,
{
let mut kbd = board::KeyboardData::new();
let args: [u8; 7] = [
args[0], args[1], args[2], args[3], args[4], args[5], args[6],
let args: [u8; 6] = [
args[0], args[1], args[2], args[3], args[4], args[5]
];
let mut c1 = board::AnimatorKeyColour::new_u(args[0], args[1], args[2]);
let c2 = board::AnimatorKeyColour::new_u(args[3], args[4], args[5]);
Expand Down Expand Up @@ -126,7 +126,7 @@ impl Effect for StaticGradient {
pub struct WaveGradient {
kbd: board::KeyboardData,
args: [u8; 7],
args: [u8; 6],
colour_band: Vec<board::AnimatorKeyColour>,
}

Expand All @@ -135,8 +135,8 @@ impl Effect for WaveGradient {
where
Self: Sized,
{
let args: [u8; 7] = [
args[0], args[1], args[2], args[3], args[4], args[5], args[6],
let args: [u8; 6] = [
args[0], args[1], args[2], args[3], args[4], args[5],
];
let mut wave = WaveGradient {
kbd: board::KeyboardData::new(),
Expand Down

0 comments on commit cbb4dd6

Please sign in to comment.