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

pull/28875/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent a812096464
commit e63e2dde18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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