Skip to content

Commit

Permalink
fix: casing
Browse files Browse the repository at this point in the history
  • Loading branch information
jtalborough committed Jun 1, 2023
1 parent 70d38d7 commit f471852
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions PanasonicCameraEpi/HttpCommandQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace PanasonicCameraEpi
public class HttpCommandQueue : CommandQueue
{
public event EventHandler<GenericHttpClientEventArgs> ResponseReceived;
int _Pacing = 130;
private int _pacing = 130;

public HttpCommandQueue(IBasicCommunication coms)
: base(coms)
Expand All @@ -19,7 +19,7 @@ public HttpCommandQueue(IBasicCommunication coms)
public HttpCommandQueue(IBasicCommunication coms, int pacing)
: base(coms)
{
_Pacing = pacing;
_pacing = pacing;
}

protected override object ProcessQueue(object obj)
Expand Down Expand Up @@ -54,7 +54,7 @@ protected override object ProcessQueue(object obj)
Debug.Console(1, client, "Dispatching request: {0}", request.Url.PathAndParams);

client.Client.DispatchAsync(request, OnResponseReceived);
Thread.Sleep(_Pacing); //command gap of 130 recommended by documentation
Thread.Sleep(_pacing); //command gap of 130 recommended by documentation
}
catch (Exception ex)
{
Expand Down
4 changes: 2 additions & 2 deletions PanasonicCameraEpi/PanasonicCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ public PanasonicCamera(IBasicCommunication comms, DeviceConfig config)
}
_monitor = new PanasonicHttpCameraMonitor(this, tempClient, cameraConfig.CommunicationMonitor);
HttpCommandQueue queue;
if (cameraConfig.pacing > 0)
if (cameraConfig.Pacing > 0)
{
queue = new HttpCommandQueue(comms, cameraConfig.pacing);
queue = new HttpCommandQueue(comms, cameraConfig.Pacing);
}
else
{
Expand Down
3 changes: 2 additions & 1 deletion PanasonicCameraEpi/PanasonicCameraPropsConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public PanasonicCameraPropsConfig()
public int TiltSpeed { get; set; }
public string HomeCommand { get; set; }
public string PrivacyCommand { get; set; }
public int pacing { get; set; }

public int Pacing { get; set; }

}

Expand Down

0 comments on commit f471852

Please sign in to comment.