Skip to content

Commit

Permalink
python: Fix setting red color
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Nov 18, 2023
1 parent a030259 commit 4792d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/qmk_hid/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4792d89

Please sign in to comment.