Fix nullable float value type

This commit is contained in:
Roman Fortunatov
2023-06-04 20:07:38 +10:00
committed by GitHub
parent 9be53266b1
commit 02fc93d61a
@@ -98,7 +98,7 @@ esp_matter_attr_val_t esp_matter_nullable_float(nullable<float> val)
if (val.is_null()) {
chip::app::NumericAttributeTraits<float>::SetNull(attr_val.val.f);
} else {
attr_val.val.i = val.value();
attr_val.val.f = val.value();
}
return attr_val;
}