mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/l3gxxxx: fix check for l3g4200d_ng
This commit is contained in:
parent
7213c0ad3e
commit
fcece44394
@ -976,7 +976,7 @@ extern "C"
|
|||||||
#include "l3gxxxx_regs.h"
|
#include "l3gxxxx_regs.h"
|
||||||
|
|
||||||
#if !IS_USED(MODULE_L3GD20H) && !IS_USED(MODULE_L3GD20) \
|
#if !IS_USED(MODULE_L3GD20H) && !IS_USED(MODULE_L3GD20) \
|
||||||
&& !IS_USED(MODULE_L3G4200_NG) \
|
&& !IS_USED(MODULE_L3G4200D_NG) \
|
||||||
&& !IS_USED(MODULE_A3G4250D) \
|
&& !IS_USED(MODULE_A3G4250D) \
|
||||||
&& !IS_USED(MODULE_I3G4250D)
|
&& !IS_USED(MODULE_I3G4250D)
|
||||||
#error Please select your sensor variant by using the respective pseudomodule.
|
#error Please select your sensor variant by using the respective pseudomodule.
|
||||||
|
@ -931,7 +931,7 @@ static int _is_available(l3gxxxx_t *dev)
|
|||||||
case L3GXXXX_CHIP_ID_L3GD20: dev->sensor = L3GD20;
|
case L3GXXXX_CHIP_ID_L3GD20: dev->sensor = L3GD20;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if IS_USED(MODULE_L3G4200D) || IS_USED(MODULE_I3G4250D) || IS_USED(MODULE_A3G4250D)
|
#if IS_USED(MODULE_L3G4200D_NG) || IS_USED(MODULE_I3G4250D) || IS_USED(MODULE_A3G4250D)
|
||||||
case L3GXXXX_CHIP_ID_X3G42XXD: dev->sensor = X3G42XXD;
|
case L3GXXXX_CHIP_ID_X3G42XXD: dev->sensor = X3G42XXD;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user