Skip to content
Commit efacee01 authored by Philémon Jaermann's avatar Philémon Jaermann Committed by Benjamin Cabé
Browse files

drivers: gnss: Correctly set the 1 bit bitfield is_tracked/corrected



Currently, if a SV is tracked, we try to store:
flags & BIT(3) -> 0b1000 -> least significant bit 0 is stored.
Same is valid for the is_corrected field.

Use double negation to treat any non-zero value as true.

Signed-off-by: default avatarPhilémon Jaermann <p.jaermann@gmail.com>
parent 2643ea23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment