From da984c578f5a79476ba1390e9580e517d65f6a33 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Thu, 8 Jul 2021 20:24:46 -0400 Subject: [PATCH] vialrgb: log protocol version on failure --- src/main/python/keyboard_comm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/python/keyboard_comm.py b/src/main/python/keyboard_comm.py index ec03495..d1a421e 100644 --- a/src/main/python/keyboard_comm.py +++ b/src/main/python/keyboard_comm.py @@ -400,7 +400,8 @@ class Keyboard: retries=20)[2:] self.rgb_version = data[0] | (data[1] << 8) if self.rgb_version != 1: - raise RuntimeError("Unsupported VialRGB protocol, update your Vial version to latest") + raise RuntimeError("Unsupported VialRGB protocol ({}), update your Vial version to latest" + .format(self.rgb_version)) self.rgb_maximum_brightness = data[2] data = self.usb_send(self.dev, struct.pack("BB", CMD_VIA_LIGHTING_GET_VALUE, VIALRGB_GET_MODE),