mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 22:00:35 +08:00
UAVCAN fix compile warning on signedness
This commit is contained in:
@@ -371,7 +371,7 @@ class VirtualCanDriver : public uavcan::ICanDriver,
|
|||||||
|
|
||||||
void waitFor(uavcan::MonotonicDuration duration)
|
void waitFor(uavcan::MonotonicDuration duration)
|
||||||
{
|
{
|
||||||
static const unsigned NsPerSec = 1000000000;
|
static const int NsPerSec = 1000000000;
|
||||||
|
|
||||||
if (duration.isPositive()) {
|
if (duration.isPositive()) {
|
||||||
auto abstime = ::timespec();
|
auto abstime = ::timespec();
|
||||||
|
|||||||
Reference in New Issue
Block a user