BMI090L compiler error: 'for' loop initial declarations are only allowed in C99 mode

I have already reported the following as an issue on the BMI090L Github repository.

Line 993 of bmi090la.c uses a 'for' loop initial declaration. This is in incompatible with some compilers.

The line is currently:

for (int indx = 0; indx < len; ++indx)

It should be changed to:

int indx;
for (indx = 0; indx < len; ++indx)

 

Best reply by Vincent

New version of API to fix this issue is available on Github now. 

View original
2 replies
Resolved