ReadData should only sleep if it encounters an Exception.
This commit is contained in:
parent
ee0048c6b7
commit
0b59571e27
2 changed files with 2 additions and 2 deletions
|
@ -92,11 +92,11 @@ namespace PMS5003
|
|||
catch (Exception e)
|
||||
{
|
||||
Logger?.LogWarning(e.ToString());
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
finally
|
||||
{
|
||||
currentTry += 1;
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<PackageId>PMS5003</PackageId>
|
||||
<Version>1.0.2</Version>
|
||||
<Version>1.0.3</Version>
|
||||
<Authors>Denis Nutiu</Authors>
|
||||
<Company>NucuLabs.dev</Company>
|
||||
<Description>C# Library for interfacing with the PMS5003 Particulate Matter Sensor.</Description>
|
||||
|
|
Loading…
Reference in a new issue