Skip to content

Commit 1ac5f63

Browse files
committed
Fix emberAfIsTypeSigned not understanding temperature type
1 parent af944bd commit 1ac5f63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/util/attribute-table.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ namespace {
4444
// Zigbee spec says types between signed 8 bit and signed 64 bit
4545
bool emberAfIsTypeSigned(EmberAfAttributeType dataType)
4646
{
47-
return (dataType >= ZCL_INT8S_ATTRIBUTE_TYPE && dataType <= ZCL_INT64S_ATTRIBUTE_TYPE);
47+
return (dataType >= ZCL_INT8S_ATTRIBUTE_TYPE && dataType <= ZCL_INT64S_ATTRIBUTE_TYPE) ||
48+
dataType == ZCL_TEMPERATURE_ATTRIBUTE_TYPE;
4849
}
4950

5051
/**

0 commit comments

Comments
 (0)