diff --git a/PMS5003/PMS5003.cs b/PMS5003/PMS5003.cs index 07601e7..d1dc7cd 100644 --- a/PMS5003/PMS5003.cs +++ b/PMS5003/PMS5003.cs @@ -92,11 +92,11 @@ namespace PMS5003 catch (Exception e) { Logger?.LogWarning(e.ToString()); + Thread.Sleep(1000); } finally { currentTry += 1; - Thread.Sleep(1000); } } diff --git a/PMS5003/PMS5003.csproj b/PMS5003/PMS5003.csproj index 1ee79b7..934bb44 100644 --- a/PMS5003/PMS5003.csproj +++ b/PMS5003/PMS5003.csproj @@ -4,7 +4,7 @@ Exe netcoreapp3.1 PMS5003 - 1.0.2 + 1.0.3 Denis Nutiu NucuLabs.dev C# Library for interfacing with the PMS5003 Particulate Matter Sensor.