sensor: Fix bad bit mask macro in mpu60x0

This commit is contained in:
Brennan Ashton 2021-05-02 22:16:54 -07:00 committed by Alan Carvalho de Assis
parent 22b719945f
commit e155af891a

View file

@ -77,7 +77,7 @@
/* Masks and shifts @v into bit field @m */
#define TO_BITFIELD(m,v) ((v) & MASK(m ##__WIDTH) << (m ##__SHIFT))
#define TO_BITFIELD(m,v) (((v) & MASK(m ##__WIDTH)) << (m ##__SHIFT))
/* Un-masks and un-shifts bit field @m from @v */