mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 16:33:33 +08:00
Meaningful error codes instead of plain -1
This commit is contained in:
@@ -157,7 +157,7 @@ int Scheduler::spin(MonotonicTime deadline)
|
||||
if (inside_spin_) // Preventing recursive calls
|
||||
{
|
||||
assert(0);
|
||||
return -1;
|
||||
return -ErrRecursiveCall;
|
||||
}
|
||||
inside_spin_ = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user