Browse Source

Long awaited bug fix about all eeprom positions being sent again

tags/v1.2.0
Bertrand Lemasle 6 years ago
parent
commit
9c38ff5098
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      GpsTracker/NetworkPositionsBackup.cpp

+ 3
- 0
GpsTracker/NetworkPositionsBackup.cpp View File

@@ -56,6 +56,9 @@ namespace positions {
PositionEntry currentEntry;
SIM808RegistrationStatus networkStatus;

//avoid edge case where if 0, whole set of positions will be sent again
if (!positions::count(config::main::value.network.lastSavedEntry)) return;

network::powerOn();
networkStatus = network::waitForRegistered(NETWORK_DEFAULT_TOTAL_TIMEOUT_MS);



||||||
x
 
000:0
Loading…
Cancel
Save