mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 07:15:20 +00:00
When the GNSS sensor is opened before the LTE stack has powered the modem on, the modem is not yet in a GNSS-capable functional mode. Instead of failing the activate with -EACCES, remember the request (priv->pending) and let the GNSS thread poll the modem functional mode (AT+CFUN?) and start GNSS once it becomes GNSS-capable. The LTE stack keeps ownership of modem power. Extract the configure/start sequence into nrf91_gnss_start() so it can be used both from nrf91_gnss_enable() and from the thread's CFUN poll. Signed-off-by: raiden00pl <raiden00@railab.me> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||