Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Conversion error in base code for ArduinoBerryIMUv3 #25

Open
RubYourDuck opened this issue Dec 8, 2021 · 0 comments
Open

Type Conversion error in base code for ArduinoBerryIMUv3 #25

RubYourDuck opened this issue Dec 8, 2021 · 0 comments

Comments

@RubYourDuck
Copy link

Copy pasted folder from https://github.com/ozzmaker/BerryIMU/tree/master/arduino-BerryIMU and ran it and faced this issue. No changes were made in the code. Error below:

C:\Users\F\arduino-BerryIMU\IMU.cpp: In function 'void enableIMU()':
C:\Users\F\arduino-BerryIMU\IMU.cpp:52:59: warning: invalid conversion from 'byte {aka unsigned char}' to 'byte* {aka unsigned char*}' [-fpermissive]
readFrom(LSM6DSL_ADDRESS,LIS3MDL_CTRL_REG3,1, temp);
^
C:\Users\F\arduino-BerryIMU\IMU.cpp:20:6: note: initializing argument 4 of 'void readFrom(int, byte, int, byte*)'
void readFrom(int device, byte address, int num, byte buff[]) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant