Volume control fix

This commit is contained in:
Heath Volmer
2019-05-16 13:00:48 -06:00
parent 1c9aa1eaf6
commit 44b72dcfe5

View File

@@ -416,7 +416,7 @@ namespace PepperDash.Essentials
if (rmVc != null) if (rmVc != null)
{ {
var vc = rmVc.CurrentVolumeControls as IBasicVolumeWithFeedback; var vc = rmVc.CurrentVolumeControls as IBasicVolumeWithFeedback;
if (rmVc != null) if (vc != null)
{ {
volumes.Master = new Volume("master", vc.VolumeLevelFeedback.UShortValue, vc.MuteFeedback.BoolValue, "Volume", true, ""); volumes.Master = new Volume("master", vc.VolumeLevelFeedback.UShortValue, vc.MuteFeedback.BoolValue, "Volume", true, "");
} }