While building a small project with the BME280 the arduino 2.1.0 version complains about ___ and - chars in the filename and code.
Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:41:21: warning: extra tokens at end of #ifndef directive
41 | #ifndef __BME280_MOD-1022_H
| ^
c:\Users\Hemtron............\Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:42:9: warning: ISO C++11 requires whitespace after the macro name
42 | #define __BME280_MOD-1022_H
| ^~~~~~~~~~~~
Renaming could fix this.
Also an issue about 'register':
c:\Users\Hemtron................\Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:165:33: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
165 | uint8_t readRegister(uint8_t register);
Don't know how to fix this
While building a small project with the BME280 the arduino 2.1.0 version complains about ___ and - chars in the filename and code.
Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:41:21: warning: extra tokens at end of #ifndef directive
41 | #ifndef __BME280_MOD-1022_H
| ^
c:\Users\Hemtron............\Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:42:9: warning: ISO C++11 requires whitespace after the macro name
42 | #define __BME280_MOD-1022_H
| ^~~~~~~~~~~~
Renaming could fix this.
Also an issue about 'register':
c:\Users\Hemtron................\Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:165:33: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
165 | uint8_t readRegister(uint8_t register);
Don't know how to fix this