Un-clobber bmx160

This commit is contained in:
Jonathan Bennett 2025-04-25 22:46:33 -05:00
parent 304e90a9c9
commit 4c1684b22f
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
#include "BMX160Sensor.h" #include "BMX160Sensor.h"
#if !defined(ARCH_STM32WL) && !MESHTASTIC_EXCLUDE_I2C && __has_include(<Rak_BMX160.h>) #if !defined(ARCH_STM32WL) && !MESHTASTIC_EXCLUDE_I2C
BMX160Sensor::BMX160Sensor(ScanI2C::FoundDevice foundDevice) : MotionSensor::MotionSensor(foundDevice) {} BMX160Sensor::BMX160Sensor(ScanI2C::FoundDevice foundDevice) : MotionSensor::MotionSensor(foundDevice) {}
#if defined(RAK_4631) && !defined(RAK2560) #if defined(RAK_4631) && !defined(RAK2560) && __has_include(<Rak_BMX160.h>)
#if !defined(MESHTASTIC_EXCLUDE_SCREEN) #if !defined(MESHTASTIC_EXCLUDE_SCREEN)
// screen is defined in main.cpp // screen is defined in main.cpp

View File

@ -5,9 +5,9 @@
#include "MotionSensor.h" #include "MotionSensor.h"
#if !defined(ARCH_STM32WL) && !MESHTASTIC_EXCLUDE_I2C && __has_include(<Rak_BMX160.h>) #if !defined(ARCH_STM32WL) && !MESHTASTIC_EXCLUDE_I2C
#if defined(RAK_4631) && !defined(RAK2560) #if defined(RAK_4631) && !defined(RAK2560) && __has_include(<Rak_BMX160.h>)
#include "Fusion/Fusion.h" #include "Fusion/Fusion.h"
#include <Rak_BMX160.h> #include <Rak_BMX160.h>