Merge "Fix test_fan."
diff --git a/sysmgr/utest/test_fan.cc b/sysmgr/utest/test_fan.cc
index b2044b3..fe228d3 100644
--- a/sysmgr/utest/test_fan.cc
+++ b/sysmgr/utest/test_fan.cc
@@ -44,7 +44,10 @@
bruno_base::LogMessage::LogToDebug(bruno_base::LS_INFO);
}
- bruno_platform_peripheral::FanControl fan_control(NULL);
+ bruno_platform_peripheral::Platform platform(
+ "Unknown", bruno_platform_peripheral::BRUNO_UNKNOWN, false, false);
+ platform.Init();
+ bruno_platform_peripheral::FanControl fan_control(&platform);
fan_control.Init(NULL);
uint16_t fan_speed;