don't block on reading ublox param (#28859)

old-commit-hash: e63e2dde18
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 75c1973249
commit 7337fab677
  1. 2
      selfdrive/locationd/laikad.py
  2. 2
      selfdrive/locationd/locationd.cc

@ -448,7 +448,7 @@ def clear_tmp_cache():
def main(sm=None, pm=None):
#clear_tmp_cache()
use_qcom = not Params().get_bool("UbloxAvailable", block=True)
use_qcom = not Params().get_bool("UbloxAvailable")
if use_qcom:
raw_name = "qcomGnss"
else:

@ -673,7 +673,7 @@ void Localizer::configure_gnss_source(LocalizerGnssSource source) {
int Localizer::locationd_thread() {
LocalizerGnssSource source;
const char* gps_location_socket;
if (Params().getBool("UbloxAvailable", true)) {
if (Params().getBool("UbloxAvailable")) {
source = LocalizerGnssSource::UBLOX;
gps_location_socket = "gpsLocationExternal";
} else {

Loading…
Cancel
Save