fix: volume controlled by I2C on taranis targets

This is essentially X9D(+) (NOT 2019) and X9E.
This commit is contained in:
Raphael Coeffic
2022-09-28 10:00:56 +02:00
parent 40018cdb69
commit 6fd69f8053
+1 -1
View File
@@ -40,7 +40,7 @@ int32_t getVolume()
void setVolume(uint8_t volume)
{
// stm32_i2c_init(VOLUME_I2C_BUS, I2C_B1_CLK_RATE);
stm32_i2c_init(VOLUME_I2C_BUS, I2C_B1_CLK_RATE);
stm32_i2c_write(VOLUME_I2C_BUS, VOLUME_I2C_ADDRESS, 0, 1, &volume, 1, 10);
}