forked from Archive/PX4-Autopilot
gps: fix incorrect task id in module startup
This commit is contained in:
parent
2e12e14a23
commit
bb9f4d42f3
|
@ -1406,7 +1406,7 @@ int GPS::task_spawn(int argc, char *argv[], Instance instance)
|
||||||
entry_point, (char *const *)argv);
|
entry_point, (char *const *)argv);
|
||||||
|
|
||||||
if (task_id < 0) {
|
if (task_id < 0) {
|
||||||
task_id = -1;
|
_task_id = -1;
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue