diff --git a/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnector.cs b/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnector.cs
index 90caa92..292aeed 100644
--- a/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnector.cs
+++ b/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnector.cs
@@ -1,6 +1,5 @@
using Microsoft.Extensions.Logging;
using NModbus;
-using NModbus.Logging;
using NModbus.Serial;
using SmartThermo.Services.DeviceConnector.Enums;
using SmartThermo.Services.DeviceConnector.Extensions;
@@ -28,8 +27,8 @@ public class DeviceConnector : IDeviceConnector
#region Const
- private const int TimeStart = 3;
- private const int TimePeriod = 3;
+ private const int TimeStart = 1;
+ private const int TimePeriod = 10;
#endregion
@@ -193,15 +192,11 @@ private async void OnTimer(object state)
RegistersRequested?.Invoke(this, result);
}
- private void StartTimer()
- {
- _timer.Change(TimeSpan.FromSeconds(TimeStart), TimeSpan.FromSeconds(TimePeriod));
- }
+ private void StartTimer()
+ => _timer.Change(TimeSpan.FromSeconds(TimeStart), TimeSpan.FromSeconds(TimePeriod));
- private void StopTimer()
- {
- _timer.Change(Timeout.Infinite, Timeout.Infinite);
- }
+ private void StopTimer()
+ => _timer.Change(Timeout.Infinite, Timeout.Infinite);
#endregion
}
diff --git a/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnectorTest.cs b/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnectorTest.cs
index 4c20466..7f2f631 100644
--- a/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnectorTest.cs
+++ b/src/Services/SmartThermo.Services.DeviceConnector/DeviceConnectorTest.cs
@@ -1,11 +1,11 @@
using SmartThermo.Services.DeviceConnector.Enums;
+using SmartThermo.Services.DeviceConnector.Extensions;
using SmartThermo.Services.DeviceConnector.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
-using SmartThermo.Services.DeviceConnector.Extensions;
namespace SmartThermo.Services.DeviceConnector
{
diff --git a/src/SmartThermo/Dialogs/Views/AboutDialog.xaml b/src/SmartThermo/Dialogs/Views/AboutDialog.xaml
index 0022e37..fa5c4e8 100644
--- a/src/SmartThermo/Dialogs/Views/AboutDialog.xaml
+++ b/src/SmartThermo/Dialogs/Views/AboutDialog.xaml
@@ -10,7 +10,7 @@
SmartThermo
- Версия прошивки - 0.5.2
+ Версия прошивки - 0.5.3
SmartThermo - это ПО для контроля, мониторинга и записи данных с датчиков температуры.
diff --git a/src/SmartThermo/SmartThermo.csproj b/src/SmartThermo/SmartThermo.csproj
index 8a0d4f6..766af55 100644
--- a/src/SmartThermo/SmartThermo.csproj
+++ b/src/SmartThermo/SmartThermo.csproj
@@ -6,9 +6,9 @@
true
true
true
- 0.5.2.0
- 0.5.2.0
- 0.5.2
+ 0.5.3.0
+ 0.5.3.0
+ 0.5.3
ru-RU