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

Commit 2e75e832 authored by Philip Chen's avatar Philip Chen
Browse files

Reland: SensorFusion: Do not use the sensor variables if they are not init'ed

The member variables for the optional sensors (mMag & mGyro) could be
used even when they are not initialized, leading to failed fusion result
in corner cases.

Let's check those variables are properly initialized before using
them.

Also add minor fixes for the coding style.

Bug: 425971589
Test: CtsSensorTestCases for auto/wear CF
Test: HW smoke test on AL
Flag: EXEMPT bugfix
Change-Id: I8863081d91faa4ca6fcb82922ecc0e7c08d8bfc8
parent 3a622119
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment