eqs: sensors: Move one shot sensor out of main class

Change-Id: Ib7ac0c55409f2dc7f8fb114167e9f4b2e8859223
This commit is contained in:
Cosmin Tanislav
2022-02-17 01:08:50 +02:00
committed by SGCMarkus
parent 5f63b491e7
commit e1ebe35962
2 changed files with 17 additions and 1 deletions

View File

@@ -79,6 +79,15 @@ class Sensor {
OperationMode mMode;
};
class OneShotSensor : public Sensor {
public:
OneShotSensor(int32_t sensorHandle, ISensorsEventCallback* callback);
virtual void batch(int32_t /* samplingPeriodNs */) override {}
virtual Result flush() override { return Result::BAD_VALUE; }
};
} // namespace implementation
} // namespace subhal
} // namespace V2_1