From c0508be5f0b3517a509bd5e51b0a1460b2484c29 Mon Sep 17 00:00:00 2001 From: rscotty Date: Fri, 30 Dec 2022 11:07:28 +0000 Subject: [PATCH] s9 only supports a single report, first byte must be set to 0x0 --- src/devices/steelseries_arctis_9.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/devices/steelseries_arctis_9.c b/src/devices/steelseries_arctis_9.c index d8e9dcce..a1b51e09 100644 --- a/src/devices/steelseries_arctis_9.c +++ b/src/devices/steelseries_arctis_9.c @@ -59,8 +59,8 @@ static int arctis_9_send_sidetone(hid_device* device_handle, uint8_t num) return ret; } - const unsigned char data_on[5] = { 0x06, 0x00, num }; - const unsigned char data_off[3] = { 0x06, 0x00, 0xc0 }; + const unsigned char data_on[5] = { 0x0, 0x06, num }; + const unsigned char data_off[3] = { 0x0, 0x06, 0xc0 }; if (num) { memmove(buf, data_on, sizeof(data_on)); @@ -106,7 +106,7 @@ static int arctis_9_send_inactive_time(hid_device* device_handle, uint8_t num) { // the value for the Arctis 9 needs to be in seconds uint32_t time = num * 60; - uint8_t data[31] = { 0x04, 0x00, (uint8_t)(time >> 8), (uint8_t)(time) }; + uint8_t data[31] = { 0x0, 0x04, (uint8_t)(time >> 8), (uint8_t)(time) }; int ret = hid_write(device_handle, data, 31); @@ -137,7 +137,7 @@ static int arctis_9_request_chatmix(hid_device* device_handle) int arctis_9_save_state(hid_device* device_handle) { - uint8_t data[31] = { 0x90, 0x00 }; + uint8_t data[31] = { 0x0, 0x90 }; return hid_write(device_handle, data, 31); } @@ -146,7 +146,7 @@ int arctis_9_read_device_status(hid_device* device_handle, unsigned char* data_r { int r = 0; - unsigned char data_request[2] = { 0x20, 0x20 }; + unsigned char data_request[2] = { 0x0, 0x20 }; r = hid_write(device_handle, data_request, 2); if (r < 0)