-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Milestone
Description
When only min or max is defined for an attribute, the generated value in GENERATED_MIN_MAX_DEFAULTS for the omitted limit does not seem to account for whether or not the underlying value is signed.
e.g.:
- <attribute side="server" code="0x0011" name="OccupiedCoolingSetpoint" define="OCCUPIED_COOLING_SETPOINT" type="temperature" min="-27315" max="0x7FFF" writable="true" default="2600" optional="true">
+ <attribute side="server" code="0x0011" name="OccupiedCoolingSetpoint" define="OCCUPIED_COOLING_SETPOINT" type="temperature" min="-27315" writable="true" default="2600">
yields
- { (uint16_t) 0xA28, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \
+ { (uint16_t) 0xA28, (uint16_t) -0x6AB3, (uint16_t) 0xFFFF }, /* OccupiedCoolingSetpoint */
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To Do