Skip to content
Commit 8de6778e authored by Kumar Gala's avatar Kumar Gala Committed by Maureen Helm
Browse files

sensor: lis2dh: Fix gcc8 compiler warning



We get the following warning with sdk-ng:

	drivers/sensor/lis2dh/lis2dh.c:210:38: error: bitwise comparison
	always evaluates to false [-Werror=tautological-compare]

	if ((value & LIS2DH_LP_EN_BIT_MASK) == 1 && ...
                                      ^~
The test needs to be:
	(value & LIS2DH_LP_EN_BIT_MASK) == LIS2DH_LP_EN_BIT_MASK

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 62704a52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment