From 50b7ac1882d0ec5034ccc3ff016262f1cf22624c Mon Sep 17 00:00:00 2001 From: nicola02nb <61830443+nicola02nb@users.noreply.github.com> Date: Wed, 19 Jun 2024 13:28:36 +0200 Subject: [PATCH] Update headsetcontrol_test.c --- src/devices/headsetcontrol_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devices/headsetcontrol_test.c b/src/devices/headsetcontrol_test.c index 3ac826b..6c83bfe 100644 --- a/src/devices/headsetcontrol_test.c +++ b/src/devices/headsetcontrol_test.c @@ -16,14 +16,14 @@ static struct device device_headsetcontrol_test; #define EQUALIZER_BAND_MAX +10 #define EQUALIZER_PRESETS_COUNT 2 -static const uint16_t PRODUCT_IDS[] = { PRODUCT_TESTDEVICE }; -static EqualizerInfo EQUALIZER = { EQUALIZER_BANDS_COUNT, EQUALIZER_BASELINE, EQUALIZER_STEP, EQUALIZER_BAND_MIN, EQUALIZER_BAND_MAX }; +static const uint16_t PRODUCT_IDS[] = { PRODUCT_TESTDEVICE }; +static EqualizerInfo EQUALIZER = { EQUALIZER_BANDS_COUNT, EQUALIZER_BASELINE, EQUALIZER_STEP, EQUALIZER_BAND_MIN, EQUALIZER_BAND_MAX }; static float preset_flat[EQUALIZER_BANDS_COUNT] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; static float preset_random[EQUALIZER_BANDS_COUNT] = { 6, -8, 1.5, 7, -1, -7.5, -9, 0, 9, 10 }; -static EqualizerPresets EQUALIZER_PRESETS = { +static EqualizerPresets EQUALIZER_PRESETS = { EQUALIZER_PRESETS_COUNT, { { "flat", preset_flat }, - { "random", preset_random } } + { "random", preset_random } } }; static int headsetcontrol_test_send_sidetone(hid_device* device_handle, uint8_t num);