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

Add i2cdetect to K66 and do not exceed 100 Khz #12635

Merged
merged 3 commits into from
Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions boards/nxp/fmuk66-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ px4_add_board(

SYSTEMCMDS
bl_update
i2cdetect
config
dumpfile
esc_calib
Expand Down
4 changes: 2 additions & 2 deletions src/systemcmds/i2cdetect/i2cdetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ int detect(int bus)
px4_i2c_msg_t msgv[2];

// send
msgv[0].frequency = 1000000;
msgv[0].frequency = 100000;
msgv[0].addr = addr;
msgv[0].flags = 0;
msgv[0].buffer = &send_data;
msgv[0].length = sizeof(send_data);

// recv
msgv[1].frequency = 1000000;
msgv[1].frequency = 100000;
msgv[1].addr = addr;
msgv[1].flags = I2C_M_READ;
msgv[1].buffer = &recv_data;;
Expand Down