From fc30bf2c1dc220b02e17d2c390e47fce019f1dae Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Thu, 14 Sep 2017 14:56:47 +0300 Subject: [PATCH] Fix test --- pylgbst/peripherals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylgbst/peripherals.py b/pylgbst/peripherals.py index 7cf890c..ab43988 100644 --- a/pylgbst/peripherals.py +++ b/pylgbst/peripherals.py @@ -57,7 +57,7 @@ class LED(Peripheral): if color not in COLORS: raise ValueError("Color %s is not in list of available colors" % color) - cmd = '\x11\x51\x00' + int2byte(color) + cmd = b'\x11\x51\x00' + int2byte(color) self._set_port_val(cmd)