Skip to content

Commit

Permalink
Fixed presets array lenght
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola02nb committed Jul 4, 2024
1 parent a8690e3 commit e2374ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ cmake-build-debug/

.vscode/*
*.code-workspace
*.cache/

.DS_Store
9 changes: 5 additions & 4 deletions src/devices/steelseries_arctis_nova_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ static struct device device_arctis;

static const uint16_t PRODUCT_IDS[] = { ID_ARCTIS_NOVA_7, ID_ARCTIS_NOVA_7x, ID_ARCTIS_NOVA_7x_v2, ID_ARCTIS_NOVA_7p, ID_ARCTIS_NOVA_7_DIABLO_IV };

float flat[MSG_SIZE] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
float bass[MSG_SIZE] = { 3.5, 5.5, 4, 1, -1.5, -1.5, -1, -1, -1, -1 };
float focus[MSG_SIZE] = { -5, -3.5, -1, -3.5, -2.5, 4, 6, -3.5, 0 };
float smiley[MSG_SIZE] = { 3, 3.5, 1.5, -1.5, -4, -4, -2.5, 1.5, 3, 4 };
float flat[EQUALIZER_BANDS_COUNT] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
float bass[EQUALIZER_BANDS_COUNT] = { 3.5, 5.5, 4, 1, -1.5, -1.5, -1, -1, -1, -1 };
float focus[EQUALIZER_BANDS_COUNT] = { -5, -3.5, -1, -3.5, -2.5, 4, 6, -3.5, 0 };
float smiley[EQUALIZER_BANDS_COUNT] = { 3, 3.5, 1.5, -1.5, -4, -4, -2.5, 1.5, 3, 4 };

static EqualizerInfo EQUALIZER = { EQUALIZER_BANDS_COUNT, EQUALIZER_BASELINE, EQUALIZER_STEP, EQUALIZER_BAND_MIN, EQUALIZER_BAND_MAX };
static EqualizerPresets EQUALIZER_PRESETS = {
Expand Down Expand Up @@ -235,6 +235,7 @@ static int arctis_nova_7_send_equalizer_preset(hid_device* device_handle, uint8_
return HSC_OUT_OF_BOUNDS;
}
}

return arctis_nova_7_send_equalizer(device_handle, &preset);
}

Expand Down

0 comments on commit e2374ab

Please sign in to comment.