fix finding the lte connection (#25286)

old-commit-hash: ab236e5ae0
taco
Willem Melching 3 years ago committed by GitHub
parent 628c5942c4
commit 5e893f8a58
  1. 2
      selfdrive/ui/qt/offroad/wifiManager.cc

@ -303,7 +303,7 @@ void WifiManager::initConnections() {
const Connection settings = getConnectionSettings(path); const Connection settings = getConnectionSettings(path);
if (settings.value("connection").value("type") == "802-11-wireless") { if (settings.value("connection").value("type") == "802-11-wireless") {
knownConnections[path] = settings.value("802-11-wireless").value("ssid").toString(); knownConnections[path] = settings.value("802-11-wireless").value("ssid").toString();
} else if (path.path() != "/") { } else if (settings.value("connection").value("id") == "lte") {
lteConnectionPath = path; lteConnectionPath = path;
} }
} }

Loading…
Cancel
Save