EnvironmentalSensor add delay before attempting to re-initialize

This commit is contained in:
Denis-Cosmin Nutiu 2019-11-09 19:38:49 +02:00
parent e245ddc961
commit 6e6f1c6fcd

View file

@ -26,6 +26,7 @@ namespace NucuCar.Sensors.EnvironmentSensor
}
else
{
await Task.Delay(10000, stoppingToken);
/* Attempt to reinitialize the sensor. */
sensor.InitializeSensor();
}