From bb9f4d42f30a98e76542e31f767d9d9e34671ba9 Mon Sep 17 00:00:00 2001 From: Thomas Frans Date: Wed, 20 Mar 2024 10:30:37 +0100 Subject: [PATCH] gps: fix incorrect task id in module startup --- src/drivers/gps/gps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index 4ed29a8c6e..fcbd5a0c83 100644 --- a/src/drivers/gps/gps.cpp +++ b/src/drivers/gps/gps.cpp @@ -1406,7 +1406,7 @@ int GPS::task_spawn(int argc, char *argv[], Instance instance) entry_point, (char *const *)argv); if (task_id < 0) { - task_id = -1; + _task_id = -1; return -errno; }