FastIMU icon indicating copy to clipboard operation
FastIMU copied to clipboard

Compilation issue on ESP32-S2 (LSM6DSL)

Open FedericoBusero opened this issue 10 months ago • 0 comments

This is the compilation issue on lolin S2 mini:

lib/FastIMU-main/src/F_LSM6DSL.cpp: In member function 'virtual int LSM6DSL::init(calData, uint8_t)': lib/FastIMU-main/src/F_LSM6DSL.cpp:20:45: warning: unsigned conversion from 'int' to 'uint8_t' {aka 'unsigned char'} changes value from '500' to '244' [-Woverflow] uint8_t IMUWhoAmI = checkReady(IMUAddress, 500);

The solution would be a) change from uint8_t to uint16_t or b) change 500ms to 255ms

FedericoBusero avatar Mar 15 '25 20:03 FedericoBusero