[DO NOT MERGE] Fix sensor not found callback function unused
Bug: 169616238
Test: Compile with and without CHRE_LOG_ONLY_NO_SENSOR flag
Change-Id: I48a2f3a151253ade5b16c84ca395d0b8b1e695b7
diff --git a/platform/slpi/see/platform_sensor_manager.cc b/platform/slpi/see/platform_sensor_manager.cc
index 4336bd3..478f0ee 100644
--- a/platform/slpi/see/platform_sensor_manager.cc
+++ b/platform/slpi/see/platform_sensor_manager.cc
@@ -142,6 +142,7 @@
#endif // CHRE_SLPI_UIMG_ENABLED
+#ifndef CHRE_LOG_ONLY_NO_SENSOR
/**
* Callback function which will run after a delay if a required sensor is not
* found.
@@ -150,6 +151,7 @@
void * /* eventData */) {
FATAL_ERROR("Missing required sensor(s)");
}
+#endif
void handleMissingSensor() {
// Try rebooting if a sensor is missing, which might help recover from a