Skip to content

Lengths of frequencies (CHG_FREQUENCY and OUT_FREQUENCY)  #22

Description

@dacwe

Setting the (defaults) to parameters CHG_FREQUENCY (333kHz) and OUT_FREQUENCY (300kHz) it is read back as something else.

The code says that this is a "integer of length 1": https://github.com/mini-box/ups/blame/8c6db6732181958accb73bc6a405dacf99dde89c/src/lib/HIDOpenUPS.cpp#L73

Is the length (1) correct here? Seems like values above 255 is truncated?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions