i2c_spi_buses: add '-q' for quiet startup flag (#14969)

* [WIP] i2c_spi_buses: add '-q' for quiet startup flag

And enable for optional board sensors.

* ROMFS: rc.sensors try starting all optional I2C sensors quietly

Co-authored-by: Daniel Agar <daniel@agar.ca>
This commit is contained in:
Beat Küng
2020-08-26 08:46:35 +02:00
committed by GitHub
co-authored by Daniel Agar
parent 407ca0a5d3
commit 4088c2581f
8 changed files with 31 additions and 19 deletions
@@ -109,6 +109,7 @@ public:
int bus_frequency{0};
spi_mode_e spi_mode{SPIDEV_MODE3};
uint8_t i2c_address{0}; ///< optional I2C address: a driver can set this to allow configuring the I2C address
bool quiet_start{false}; ///< do not print a message when startup fails
uint8_t orientation{0}; ///< distance_sensor_s::ROTATION_*