Skip to content

[BUG] Extra padding byte in command on Windows #439

@aracat

Description

@aracat

Software Versions:

  • Operating System: Windows 23H2 22631.5189
  • Python version: 3.9.1
  • BusyLight version: 033.3

General Type of Problem

  • other

Describe the Problem
I appear to have the opposite problem of #417 with a Blynclight device id = (0x2C0D, 0x000C) where the extra padding byte on Windows is corrupting the command:

light.on((255,0,0)) -> should be bright red, is bright blue (this model's command structure is R B G Flags ...)
light.on((255,0,255)) -> should be bright purple, is bright cyan
light.on((255,255,255)) -> should be bright white, is off (due to the green byte getting shifted into the flags and setting the off bit)

After editing light.py to delete the addition of the padding byte, the device functions as expected.

Error Output
If there was an error displayed, paste it in here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions