diff --git a/PanasonicCameraEpi/HttpCommandQueue.cs b/PanasonicCameraEpi/HttpCommandQueue.cs index 093dbbc..e24b72b 100644 --- a/PanasonicCameraEpi/HttpCommandQueue.cs +++ b/PanasonicCameraEpi/HttpCommandQueue.cs @@ -9,7 +9,7 @@ namespace PanasonicCameraEpi public class HttpCommandQueue : CommandQueue { public event EventHandler ResponseReceived; - int _Pacing = 130; + private int _pacing = 130; public HttpCommandQueue(IBasicCommunication coms) : base(coms) @@ -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) @@ -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) { diff --git a/PanasonicCameraEpi/PanasonicCamera.cs b/PanasonicCameraEpi/PanasonicCamera.cs index fa8c183..6b8b66c 100644 --- a/PanasonicCameraEpi/PanasonicCamera.cs +++ b/PanasonicCameraEpi/PanasonicCamera.cs @@ -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 { diff --git a/PanasonicCameraEpi/PanasonicCameraPropsConfig.cs b/PanasonicCameraEpi/PanasonicCameraPropsConfig.cs index a9bd61a..82a5d2b 100644 --- a/PanasonicCameraEpi/PanasonicCameraPropsConfig.cs +++ b/PanasonicCameraEpi/PanasonicCameraPropsConfig.cs @@ -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; } }