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

Commit cda575a3 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

HidlSensorHalWrapper: Initialize field

We increment mTotalHidlTransportErrors, but we need to initialize
it to 0 to start.

Bug: 195593357
Test: TreeHugger
Change-Id: Ia923af087d2a6fca8a88c4c4263ec9f54fa608f1
parent f3c47f79
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ class HidlSensorHalWrapper : public ISensorHalWrapper {
public:
    HidlSensorHalWrapper()
          : mHidlTransportErrors(20),
            mTotalHidlTransportErrors(0),
            mRestartWaiter(new SensorDeviceUtils::HidlServiceRegistrationWaiter()),
            mEventQueueFlag(nullptr),
            mWakeLockQueueFlag(nullptr) {}