From e63e2dde18b9ae2925d1a38c527dccfd0c99d4c5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 10 Jul 2023 15:33:58 -0700 Subject: [PATCH] don't block on reading ublox param (#28859) --- selfdrive/locationd/laikad.py | 2 +- selfdrive/locationd/locationd.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/locationd/laikad.py b/selfdrive/locationd/laikad.py index 58de2c0ff0..a9a1e78470 100755 --- a/selfdrive/locationd/laikad.py +++ b/selfdrive/locationd/laikad.py @@ -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: diff --git a/selfdrive/locationd/locationd.cc b/selfdrive/locationd/locationd.cc index 3616f0af85..9b3e3b3b85 100755 --- a/selfdrive/locationd/locationd.cc +++ b/selfdrive/locationd/locationd.cc @@ -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 {