From 02fc93d61afb77af53c9225ad4c80fe14bb19e89 Mon Sep 17 00:00:00 2001 From: Roman Fortunatov Date: Sun, 4 Jun 2023 20:07:38 +1000 Subject: [PATCH] Fix nullable float value type --- components/esp_matter/esp_matter_attribute_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_attribute_utils.cpp b/components/esp_matter/esp_matter_attribute_utils.cpp index ccc4c5071..91b73ec67 100644 --- a/components/esp_matter/esp_matter_attribute_utils.cpp +++ b/components/esp_matter/esp_matter_attribute_utils.cpp @@ -98,7 +98,7 @@ esp_matter_attr_val_t esp_matter_nullable_float(nullable val) if (val.is_null()) { chip::app::NumericAttributeTraits::SetNull(attr_val.val.f); } else { - attr_val.val.i = val.value(); + attr_val.val.f = val.value(); } return attr_val; }