Reading acceleration of BMI270

Hi,

does someone know how to get data from BMI270 with arduino?
I am using Arduino Nano with level shifter.

I tried to implement the repository published on github (click here).
Right after compiling an error message that I can't get rid of is shown:

libraries\BMI270-Sensor-API-bmi270_v2.46.1/bmi2.h:1341:2: error: #endif without #if

#endif /* BMI2_H_ */

There is a code for arduino on github but error occurs independet of .ino file.

Does someone have an idea of how to geht accelerometer values respectivily how to avoid the shown error message?

Thanks in advance!!

You can get rid of that error by inserting a new line after the "/" character of line 37.

But that code is not intended to be used with the Arduino IDE.