Hi, II have to reopen this thread because actually I am having a similar problem. I couldn't change the library in the way you mentioned to get arduino code compiled. Could you post/attach the part of the library you have changed? The message I received after compiling is same as yours: BMI270-Sensor-API-bmi270_v2.46.1/bmi2.h:1341:2: error: #endif without #if
#endif /* BMI2_H_ */ I am also able able to detect correct chip ID (0x24) but accelerometer output independet of axis is still zero.
... View more