mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 05:53:35 +08:00
i2c spi buses: enforce drivers to set default SPI/I2C bus frequency
Not a lot of drivers use the global default, which is somewhat arbitrary.
This commit is contained in:
@@ -430,6 +430,7 @@ extern "C" __EXPORT int irlock_main(int argc, char *argv[])
|
||||
using ThisDriver = IRLOCK;
|
||||
BusCLIArguments cli{true, false};
|
||||
cli.i2c_address = IRLOCK_I2C_ADDRESS;
|
||||
cli.default_i2c_frequency = 400000;
|
||||
|
||||
const char *verb = cli.parseDefaultArguments(argc, argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user