commit | 1b3b7304d6cd78f44f39a5d54c1dc0ab3e1cf93d | [log] [tgz] |
---|---|---|
author | Harvey Wu <Harvey.Wu@quantatw.com> | Fri Oct 04 16:49:46 2024 +0800 |
committer | Harvey Wu <Harvey.Wu@quantatw.com> | Mon Oct 07 11:55:22 2024 +0800 |
tree | 15aa45db277b0a139b52ae1c7c817b16e0c3695a | |
parent | bd63bcaca2ac9edf1778136cf240e3bbe8b31566 [diff] [blame] |
fix CI failed - Refs about removing add_object_vtable: https://gerrit.openbmc.org/c/openbmc/phosphor-hwmon/+/73009 - initial some struct data Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com> Change-Id: Iacc62eb1b8cd2b1e092efdbcb3abafb8afb896c7
diff --git a/dbus/dbushelper_interface.hpp b/dbus/dbushelper_interface.hpp index 6d7e506..2ea6230 100644 --- a/dbus/dbushelper_interface.hpp +++ b/dbus/dbushelper_interface.hpp
@@ -8,13 +8,13 @@ struct SensorProperties { - int64_t scale; - double value; - double min; - double max; + int64_t scale = 0; + double value = 0.0; + double min = 0.0; + double max = 0.0; std::string unit; - bool available; - bool unavailableAsFailed; + bool available = false; + bool unavailableAsFailed = false; }; class DbusHelperInterface