Skip to content

Default register values should be set when the YAML is loaded, not anywhere they're accessed #31

@tjhowse

Description

@tjhowse

Any optional value of a register should be set to its default value in the for register in self.registers: loop in mqtt_interface.__init__(), rather than using register.get(field, 'default') throughout the code. The defaults for each register value should be declared in a top-level CONST map.

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