Skip to content

Bug in reading light state #1

Description

@rscott78

Hey, thanks for the work in your library. I went through about a dozen other C# Lifx libraries that were all garbage - finally found yours!

I've come across what I believe is a bug. When the light state is polled, the hue value is lost. In LightStatus.cs, the hue value will be a large number - say for example 32000. When the HsvColor gets set, there's a statement _hue = Math.Min(360d, Math.Max(hue, 0)); which essentially says that it can't be higher than 360. The result is that the hue is always 360.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions