Skip to content

Commit

Permalink
fix: use EnqueueCommand instead of SendText
Browse files Browse the repository at this point in the history
  • Loading branch information
ndorin committed Jun 28, 2024
1 parent f9a07ec commit 292653b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CiscoRoomOsCodec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6957,7 +6957,7 @@ private void SetUpCameras(List<CameraInfo> cameraInfo)
if(existingCamera != null)
{
existingCamera.SetParentCodec(this);
if (UInt32.TryParse(item.CameraId, out var id))
if (uint.TryParse(item.CameraId, out var id))
{
existingCamera.SetCameraId(Convert.ToUInt16(id));
}
Expand Down Expand Up @@ -7111,17 +7111,17 @@ private void SetUpCamerasFromConfig(List<CameraInfo> cameraInfo)

public void SetCameraAssignedSerialNumber(uint cameraId, string serialNumber)
{
SendText($"xConfiguration Cameras Camera[{cameraId}] AssignedSerialNumber: {serialNumber}");
EnqueueCommand($"xConfiguration Cameras Camera[{cameraId}] AssignedSerialNumber: {serialNumber}");
}

public void SetCameraName(uint videoConnectorId, string name)
{
SendText($"xConfiguration Video Input Connector[{videoConnectorId}] Name: {name}");
{
EnqueueCommand($"xConfiguration Video Input Connector[{videoConnectorId}] Name: {name}");
}

public void SetInputSourceType(uint videoConnectorId, eCiscoCodecInputSourceType sourceType)
{
SendText($"xConfiguration Video Input Connector[{videoConnectorId}] InputSourceType: {sourceType}");
{
EnqueueCommand($"xConfiguration Video Input Connector[{videoConnectorId}] InputSourceType: {sourceType}");
}

#endregion
Expand Down

0 comments on commit 292653b

Please sign in to comment.