forked from Archive/PX4-Autopilot
drivers/distance_sensor/gy_us42: add the specified i2c address
This commit is contained in:
parent
f96507bb22
commit
e4b4df4e5d
|
@ -54,6 +54,7 @@ extern "C" __EXPORT int gy_us42_main(int argc, char *argv[])
|
|||
BusCLIArguments cli{true, false};
|
||||
cli.rotation = (Rotation)distance_sensor_s::ROTATION_DOWNWARD_FACING;
|
||||
cli.default_i2c_frequency = 100000;
|
||||
cli.i2c_address = GY_US42_BASEADDR;
|
||||
|
||||
while ((ch = cli.getOpt(argc, argv, "R:")) != EOF) {
|
||||
switch (ch) {
|
||||
|
|
Loading…
Reference in New Issue