Skip to content

PWM Offset wrapping after midnight #247

@lnevo

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions