fix ratbag-command led setting

This commit is contained in:
Kyoken
2021-12-22 21:51:22 +03:00
committed by Peter Hutterer
parent 5b7af0ec14
commit e0dc0a3a5b

View File

@@ -808,7 +808,10 @@ class RatbagdLed(metaclass=MetaRatbag):
@param color An RGB color, as an integer triplet with values 0-255.
"""
libratbag.ratbag_led_set_color(self._led, libratbag.ratbag_color(*color))
# libratbag.ratbag_led_set_color(self._led, libratbag.ratbag_color(*color))
rc = libratbag.ratbag_color()
rc.red, rc.green, rc.blue = color
libratbag.ratbag_led_set_color(self._led, rc)
@property
def colordepth(self):