fix(taranis): restore volume cli for I2C audio targets - #6543
Conversation
|
@raphaelcoeffic Do we remove this, or revert #5863 and probably add |
0ac3771 to
cbd1d3a
Compare
|
Added a commit restoring volume readback: wired Valid targets for this code path are Unlikely to ever be used, but the functionality is there, and not having it hooked up was causing a compiler warning. |
51aa25d to
b13f9c2
Compare
Wire read_i2c_volume() up to getVolume() and restore the "volume" cliDisplay command that EdgeTX#5863 dropped, scoped to VOLUME_I2C_ADDRESS (taranis boards with the I2C volume chip) instead of the broader !defined(SOFTWARE_VOLUME) used previously, since getVolume() was never implemented for the other boards that declare it.
b13f9c2 to
9d80afb
Compare
Summary of changes:
read_i2c_volumestatic function is defined but not used in targets/taranis/volume_i2c.cpp.This one generates the next warning on build.