diff --git a/src/devices/steelseries_arctis_nova_7.c b/src/devices/steelseries_arctis_nova_7.c index 80be938..9b63683 100644 --- a/src/devices/steelseries_arctis_nova_7.c +++ b/src/devices/steelseries_arctis_nova_7.c @@ -246,9 +246,9 @@ int arctis_nova_7_read_device_status(hid_device* device_handle, unsigned char* d static int arctis_nova_7_bluetooth_when_powered_on(hid_device* device_handle, uint8_t num) { - unsigned char data[MSG_SIZE] = { 0x00, 0xb2, num }; + unsigned char data[MSG_SIZE] = { 0x00, 0xb2, num }; unsigned char data2[MSG_SIZE] = { 0x00, 0x09, 0 }; - if (hid_write(device_handle, data, MSG_SIZE) >= 0){ + if (hid_write(device_handle, data, MSG_SIZE) >= 0) { return hid_write(device_handle, data2, MSG_SIZE); } return HSC_READ_TIMEOUT; @@ -279,7 +279,7 @@ static int arctis_nova_7_mic_volume(hid_device* device_handle, uint8_t num) // step + 0x01 // 0x07 max num = num / 16; - if (num == 8) + if (num == 8) num--; unsigned char data[MSG_SIZE] = { 0x00, 0x37, num }; return hid_write(device_handle, data, MSG_SIZE);