Merge branch 'pr_435' into 'main'

[GH_PR] Fix nullable float value type (CON-538)

See merge request app-frameworks/esp-matter!394
This commit is contained in:
Shu Chen
2023-06-12 12:07:18 +08:00
@@ -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;
}