You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The px4_task_spawn_cmd function passes a value greater than or equal to 0 in the normal case and a value of -1 if an error occurs.
When the dataman start function in dataman.cpp file is running, call the px4_task_spawn_cmd function.
Therefore, in the source code below, the comparison statement that determines the error should be modified to a value less than zero.
// Now if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 10, 1200, task_main, nullptr)) <= 0) {
Bug Report
The px4_task_spawn_cmd function passes a value greater than or equal to 0 in the normal case and a value of -1 if an error occurs.
When the dataman start function in dataman.cpp file is running, call the px4_task_spawn_cmd function.
Therefore, in the source code below, the comparison statement that determines the error should be modified to a value less than zero.
// Now
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 10, 1200, task_main, nullptr)) <= 0) {
// Modified
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 10, 1200, task_main, nullptr)) < 0) {
The text was updated successfully, but these errors were encountered: