From 6b1b22fa4650a9642b95f63830d8d45abec413d6 Mon Sep 17 00:00:00 2001 From: nymea Date: Fri, 28 Jun 2019 20:34:48 +0200 Subject: [PATCH] added missing symbol --- denon/deviceplugindenon.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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());