Merge branch 'robustez' of http://zendioninc.com.br:3000/Zendion/agrobot_base into robustez
This commit is contained in:
commit
84f6882d51
|
|
@ -47,6 +47,7 @@ namespace AgroBase.Services
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static bool HasInternet { get; set; }
|
public static bool HasInternet { get; set; }
|
||||||
|
public static bool HasInternetNow() => _hasInternet;
|
||||||
|
|
||||||
public static void IniciarRotinas()
|
public static void IniciarRotinas()
|
||||||
{
|
{
|
||||||
|
|
@ -58,7 +59,7 @@ namespace AgroBase.Services
|
||||||
|
|
||||||
private static async Task tmrMonitoramento_Tick()
|
private static async Task tmrMonitoramento_Tick()
|
||||||
{
|
{
|
||||||
HasInternet = _hasInternet;
|
HasInternet = HasInternetNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Método para GET
|
// Método para GET
|
||||||
|
|
|
||||||
|
|
@ -2294,7 +2294,7 @@ namespace OperationControl.Services
|
||||||
Func<Task> stopNtrip = null,
|
Func<Task> stopNtrip = null,
|
||||||
CancellationToken ct = default)
|
CancellationToken ct = default)
|
||||||
{
|
{
|
||||||
if (!APIService.HasInternet)
|
if (!APIService.HasInternetNow())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
await ConfigurarComoRoverParadoAsync(portaUsb, portaEntrada, ct)
|
await ConfigurarComoRoverParadoAsync(portaUsb, portaEntrada, ct)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue