Apex3TKL: do not send brightness if current brightness already set

This commit is contained in:
morg 2023-10-30 20:25:54 +01:00 committed by Adam Honse
parent 26e584860e
commit 7067bb774f

View file

@ -54,6 +54,8 @@ void SteelSeriesApex8ZoneController::SetBrightness(uint8_t brightness)
uint8_t buffer[STEELSERIES_8Z_WRITE_PACKET_SIZE] = { 0x00, 0x23, brightness };
hid_write(dev, buffer, STEELSERIES_8Z_WRITE_PACKET_SIZE);
current_brightness = brightness;
}
uint8_t SteelSeriesApex8ZoneController::GetBrightness()