From fcece44394cc0b9a4fe51d31d90fa7ce6517964a Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 28 Apr 2023 17:09:39 +0200 Subject: [PATCH] drivers/l3gxxxx: fix check for l3g4200d_ng --- drivers/include/l3gxxxx.h | 2 +- drivers/l3gxxxx/l3gxxxx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/include/l3gxxxx.h b/drivers/include/l3gxxxx.h index fbf3fb5ca1..1641f65b65 100644 --- a/drivers/include/l3gxxxx.h +++ b/drivers/include/l3gxxxx.h @@ -976,7 +976,7 @@ extern "C" #include "l3gxxxx_regs.h" #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_I3G4250D) #error Please select your sensor variant by using the respective pseudomodule. diff --git a/drivers/l3gxxxx/l3gxxxx.c b/drivers/l3gxxxx/l3gxxxx.c index 9b7b5621ab..266beb3321 100644 --- a/drivers/l3gxxxx/l3gxxxx.c +++ b/drivers/l3gxxxx/l3gxxxx.c @@ -931,7 +931,7 @@ static int _is_available(l3gxxxx_t *dev) case L3GXXXX_CHIP_ID_L3GD20: dev->sensor = L3GD20; break; #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; break; #endif