EnvironmentalSensor add delay before attempting to re-initialize
This commit is contained in:
parent
e245ddc961
commit
6e6f1c6fcd
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ namespace NucuCar.Sensors.EnvironmentSensor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
await Task.Delay(10000, stoppingToken);
|
||||||
/* Attempt to reinitialize the sensor. */
|
/* Attempt to reinitialize the sensor. */
|
||||||
sensor.InitializeSensor();
|
sensor.InitializeSensor();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue