27 lines
802 B
Diff
27 lines
802 B
Diff
From 53b88dce1cbd7165b97b3419f02af9cb235bf92c Mon Sep 17 00:00:00 2001
|
|
From: Cosmin Tanislav <demonsingur@gmail.com>
|
|
Date: Thu, 17 Feb 2022 01:06:04 +0200
|
|
Subject: [PATCH 04/15] sensors: Make sensor flush function virtual
|
|
|
|
Change-Id: I46532fc726d9e0c2073100ff1f6008fcde9e821c
|
|
---
|
|
sensors/Sensor.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sensors/Sensor.h b/sensors/Sensor.h
|
|
index 8a7153a..3c508c5 100644
|
|
--- a/sensors/Sensor.h
|
|
+++ b/sensors/Sensor.h
|
|
@@ -51,7 +51,7 @@ class Sensor {
|
|
const SensorInfo& getSensorInfo() const;
|
|
virtual void batch(int32_t samplingPeriodNs);
|
|
virtual void activate(bool enable);
|
|
- Result flush();
|
|
+ virtual Result flush();
|
|
|
|
void setOperationMode(OperationMode mode);
|
|
bool supportsDataInjection() const;
|
|
--
|
|
2.25.1
|
|
|