Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91b4835a authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix cert-dcl16-c warnings

Bug: 120614316
Test: make tidy-hardware-interfaces-sensors-aidl_subset
Change-Id: Ia9f5a9153b1591623aff0df4e185f445762bcbaf
parent 55a87cc1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -52,10 +52,10 @@ const SensorInfo& Sensor::getSensorInfo() const {
}

void Sensor::batch(int64_t samplingPeriodNs) {
    if (samplingPeriodNs < mSensorInfo.minDelayUs * 1000ll) {
        samplingPeriodNs = mSensorInfo.minDelayUs * 1000ll;
    } else if (samplingPeriodNs > mSensorInfo.maxDelayUs * 1000ll) {
        samplingPeriodNs = mSensorInfo.maxDelayUs * 1000ll;
    if (samplingPeriodNs < mSensorInfo.minDelayUs * 1000LL) {
        samplingPeriodNs = mSensorInfo.minDelayUs * 1000LL;
    } else if (samplingPeriodNs > mSensorInfo.maxDelayUs * 1000LL) {
        samplingPeriodNs = mSensorInfo.maxDelayUs * 1000LL;
    }

    if (mSamplingPeriodNs != samplingPeriodNs) {