Skip to content

Compilation issue on ESP32-S2 (LSM6DSL) #43

Description

@FedericoBusero

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions