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