Explorar el Código

Reported overflow prevention from pause detection to bad network detection code

tags/v1.2.0
Bertrand Lemasle hace 7 años
padre
commit
70db8ae6e4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      GpsTracker/NetworkPositionsBackup.cpp

+ 1
- 1
GpsTracker/NetworkPositionsBackup.cpp Ver fichero

@@ -64,7 +64,7 @@ namespace positions {
networkStatus = network::waitForRegistered(networkTimeout);

if (!network::isAvailable(networkStatus.stat) || !network::enableGprs()) {
networkUnavailableInARow++;
networkUnavailableInARow = min(networkUnavailableInARow + 1, POSITIONS_CONFIG_NET_DEFAULT_UNAVAILABLE_NETWORK_POSTPONE_THRESHOLD + 1); //avoid increment overflow
NOTICE_MSG("appendPositions", "network or gprs unavailable");

if (networkUnavailableInARow > POSITIONS_CONFIG_NET_DEFAULT_UNAVAILABLE_NETWORK_POSTPONE_THRESHOLD) {


Cargando…
Cancelar
Guardar