Skip to content
Snippets Groups Projects

Draft: gnss/modemmanager: Watch Modem.Location properties and reset

Closed Imported Administrator requested to merge mm-watch-props into master
  1. May 27, 2024
  2. May 23, 2024
    • Teemu Ikonen's avatar
      gnss/modemmanager: Watch Modem.Location properties and reset · f55c8f23
      Teemu Ikonen authored
      Listen to PropertiesChanged signal from MM Location interface and
      re-enable the gps-nmea location source and reset GpsRefresh rate if they
      are not what we need. Remove the signal matcher in finalize_modem().
      
      Make enable_gps() to only 'upgrade' the properties we need, that is,
      enable the gps-nmea source if it's not enabled, leave the
      SignalsLocation property as it is, and only set GpsRefreshRate if it's
      below the minimum we require (1). This is to avoid multiple MM clients
      getting into a mutual reset loop.
      
      Refactor poll_loop so that it polls about every refreshInterval (1 s)
      even when receiving signals.
      f55c8f23
Loading