Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program crash on 8+ colors in fading mode. #35

Open
zachdnvn opened this issue Apr 12, 2018 · 0 comments
Open

Program crash on 8+ colors in fading mode. #35

zachdnvn opened this issue Apr 12, 2018 · 0 comments

Comments

@zachdnvn
Copy link

zachdnvn commented Apr 12, 2018

Hello,
I notice when you add more than 8 colors under the fading menu (Like a spectrum wave, but with only one color), the program crashes. I have attached the popup error. Upon selecting "Okay" the program exits.

An unhandled exception has occurred
----------------------------------------
<class 'ValueError'>: 
byte must be in range(0, 256)
----------------------------------------
  File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue_ui.py", line 640, in applyFunc
    self.indexApply[self.presetModeWidget.currentIndex()]()
  File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue_ui.py", line 380, in fadingApply
    hue.fading(ser, 0, self.getChannel(), self.getColors(self.fadingList), speed)
  File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue.py", line 450, in fading
    command = create_command(ser, channel, color, "fading", 0, 0, 0, speed)
  File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue.py", line 374, in create_command
    command = bytearray(command)

Windows v1.4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant