mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Fix nullable float value type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user