diff --git a/denon/deviceplugindenon.cpp b/denon/deviceplugindenon.cpp index e65a4334..c4063ae0 100644 --- a/denon/deviceplugindenon.cpp +++ b/denon/deviceplugindenon.cpp @@ -384,6 +384,18 @@ void DevicePluginDenon::onAvrVolumeChanged(int volume) } } +void DevicePluginDenon::onAvrChannelChanged(const QByteArray &channel) +{ + AvrConnection *denonConnection = static_cast(sender()); + Device *device = m_avrConnections.key(denonConnection); + if (!device) + return; + + if (device->deviceClassId() == AVRX1000DeviceClassId) { + device->setStateValue(AVRX1000ChannelStateTypeId, channel); + } +} + void DevicePluginDenon::onAvrMuteChanged(bool mute) { AvrConnection *denonConnection = static_cast(sender());