mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Fixed: Passing this->_armed_sub to close, which cannot accept a negative number.
This commit is contained in:
committed by
Lorenz Meier
parent
91362223ea
commit
4baf4a032f
@@ -513,7 +513,7 @@ UavcanNode::teardown()
|
||||
_control_subs[i] = -1;
|
||||
}
|
||||
}
|
||||
return ::close(_armed_sub);
|
||||
return (_armed_sub >= 0) ? ::close(_armed_sub) : 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user