Skip to content

Commit

Permalink
Partially revert changes to S2LS
Browse files Browse the repository at this point in the history
Real world tests indicated problems on certain devices.
  • Loading branch information
gbl08ma committed Nov 17, 2017
1 parent 6b0613b commit 6da7d1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions s2ls/src/main/java/im/tny/segvault/s2ls/wifi/WiFiLocator.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,13 @@ public void updateCurrentBSSIDs(List<BSSID> bssids) {
listener.onLeftNetwork(this);
}
}
// only switch to a different station once its Wi-Fi signal is stronger
// than that of the current station
if (curLocation.size() > 0) {
Stop s = curLocation.get(0);

for (Stop s : curLocation) {
if ((lastEntered != s || !prevLocation.contains(s)) && !blacklistedStations.contains(s)) {
listener.onEnteredStations(this, s);
lastEntered = s;
blacklistedStations.add(s);
break;
}
}
}
Expand Down

0 comments on commit 6da7d1d

Please sign in to comment.