From 4792d892c03f89bbc164fa7171efdf6a2bae297f Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Fri, 17 Nov 2023 06:34:42 -0800 Subject: [PATCH] python: Fix setting red color Signed-off-by: Daniel Schaefer --- python/qmk_hid/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/qmk_hid/gui.py b/python/qmk_hid/gui.py index 789934e..5872fd8 100644 --- a/python/qmk_hid/gui.py +++ b/python/qmk_hid/gui.py @@ -592,7 +592,7 @@ def set_brightness(dev, brightness): def set_rgb_color(dev, hue, saturation): (cur_hue, cur_sat) = get_rgb_color(dev) - if not hue: + if hue is None: hue = cur_hue msg = [CHANNEL_RGB_MATRIX, RGB_MATRIX_VALUE_COLOR, hue, saturation] send_message(dev, CUSTOM_SET_VALUE, msg, 0)