Skip to content

PWM Offset wrapping after midnight #247

Description

@lnevo

Same issue as was fixed in the SunLocation code #246

If you have a time crossing midnight and the Pre/Post offsets are applied and they take the value below zero it will screw up the values.

Solution will be to convert to a real time value and then convert back to minutes. There's probably an easier way then what I've done :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions