mirror of https://github.com/arendst/Tasmota.git
Moved to uint16_t
This commit is contained in:
parent
923ef8202e
commit
e4bae0cca6
|
@ -318,8 +318,8 @@ public:
|
|||
}
|
||||
|
||||
uint8_t type; // zigbee type, Zunk by default
|
||||
int16_t multiplier; // multiply by x (ignore if 0 or 1)
|
||||
int16_t divider; // divide by x (ignore if 0 or 1)
|
||||
uint16_t multiplier; // multiply by x (ignore if 0 or 1)
|
||||
uint16_t divider; // divide by x (ignore if 0 or 1)
|
||||
int16_t base; // add x (ignore if 0)
|
||||
uint16_t cluster; // cluster number
|
||||
uint16_t attribute; // attribute number
|
||||
|
@ -354,8 +354,8 @@ public:
|
|||
uint16_t attribute; // attribute to match
|
||||
uint16_t new_cluster; // replace with this cluster
|
||||
uint16_t new_attribute; // replace with this attribute
|
||||
int16_t multiplier; // multiply by x (ignore if 0 or 1)
|
||||
int16_t divider; // divide by x (ignore if 0 or 1)
|
||||
uint16_t multiplier; // multiply by x (ignore if 0 or 1)
|
||||
uint16_t divider; // divide by x (ignore if 0 or 1)
|
||||
int16_t base; // add x (ignore if 0)
|
||||
};
|
||||
|
||||
|
|
|
@ -1000,8 +1000,8 @@ void ZCLFrame::parseReadConfigAttributes(uint16_t shortaddr, Z_attribute_list& a
|
|||
}
|
||||
|
||||
// find the multiplier
|
||||
int16_t multiplier = 1;
|
||||
int16_t divider = 1;
|
||||
uint16_t multiplier = 1;
|
||||
uint16_t divider = 1;
|
||||
int16_t base = 0;
|
||||
Z_attribute_match matched_attr = Z_findAttributeMatcherById(shortaddr, cluster, attrid, false);
|
||||
if (matched_attr.found()) {
|
||||
|
|
Loading…
Reference in New Issue