Skip to content

Commit

Permalink
chore: test/debug local
Browse files Browse the repository at this point in the history
  • Loading branch information
jgutenplan committed May 4, 2024
1 parent a0bbf75 commit 04c0e78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/CiscoRoomOsCodec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ public CiscoCodec(DeviceConfig config, IBasicCommunication comm)
);

UiExtensions = props.Extensions;
if (props.Extensions.ConfigId > 0)
if (props?.Extensions?.ConfigId > 0)
{
VideoCodecUiExtensionsHandler = new UiExtensionsHandler(this, EnqueueCommand);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public T ParseConfigProps<T>(DeviceConfig config)

public CiscoCodecUserInterface(DeviceConfig config) : base(config)
{

ParseConfigProps<CiscoCodecUserInterfaceConfig>(config);
ConfigProps = ParseConfigProps<CiscoCodecUserInterfaceConfig>(config);

}

public override bool CustomActivate()
{
UisCiscoCodec = DeviceManager.GetDeviceForKey(ConfigProps.VideoCodecKey) as CiscoCodec;
Debug.LogMessage(LogEventLevel.Debug, "[DEBUG] Activating Video Codec UI Extensions", this);
UisCiscoCodec = DeviceManager.GetDeviceForKey(ConfigProps.VideoCodecKey) as CiscoCodec;

if (UisCiscoCodec == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ public MobileControlTouchpanelController(DeviceConfig config) : base(config)
};
}

public override bool CustomActivate()
{
mc = DeviceManager.AllDevices.OfType<IMobileControl>().FirstOrDefault();

if (mc == null)
{
return base.CustomActivate();
}

return base.CustomActivate();
}

private void SubscribeForMobileControlUpdates()
{
foreach (var dev in DeviceManager.AllDevices)
Expand Down

0 comments on commit 04c0e78

Please sign in to comment.