tedyapo / arduino-MLX90393

Arduino library for MLX90393 magnetometer sensor
MIT License
49 stars 26 forks source link

Bug in convDelayMillis() #47

Closed lucadonini96 closed 4 years ago

lucadonini96 commented 4 years ago

In MLX90393.cpp, line 409

In the method convDelayMillis(), the digital filtering parameter is fetched incorrectly: const uint8_t dig_flt = (cache.reg[DIG_FLT_MASK] & DIG_FLT_MASK) >> DIG_FLT_SHIFT; should read const uint8_t dig_flt = (cache.reg[DIG_FLT_REG] & DIG_FLT_MASK) >> DIG_FLT_SHIFT;

tedyapo commented 4 years ago

thank you!

fixed by 4b044b532be969a4464e58fa488459d97248596d