fix redefine warning

with Arduino Core 3.0.x
This commit is contained in:
Jason2866 2021-12-21 12:19:32 +01:00 committed by GitHub
parent 376904e158
commit c554a70b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ int MLX90640_I2CRead(uint8_t addr, uint32_t reg, uint16_t len, uint16_t *reg_dat
int MLX90640_I2CWrite(uint8_t _deviceAddress, unsigned int writeAddress, uint16_t data); int MLX90640_I2CWrite(uint8_t _deviceAddress, unsigned int writeAddress, uint16_t data);
// I2C // I2C
#define I2C_BUFFER_LENGTH 128 #ifndef I2C_BUFFER_LENGTH
#define I2C_BUFFER_LENGTH 128
#endif
int MLX90640_I2CRead(uint8_t addr, uint32_t reg, uint16_t len, uint16_t *reg_data){ int MLX90640_I2CRead(uint8_t addr, uint32_t reg, uint16_t len, uint16_t *reg_data){
int bytesRemaining = len * 2; int bytesRemaining = len * 2;