Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/devices/steelseries_arctis_9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
Expand All @@ -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)
Expand Down