mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 01:07:35 +08:00
i2cdetect do not exceed 100Khz
This commit is contained in:
committed by
Daniel Agar
parent
64f105b530
commit
e8d874cf34
@@ -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;;
|
||||
|
||||
Reference in New Issue
Block a user