mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 09:33:34 +08:00
Added config macro UAVCAN_TOSTRING
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
#include <cassert>
|
||||
#include <uavcan/driver/can.hpp>
|
||||
|
||||
@@ -57,6 +56,7 @@ bool CanFrame::priorityHigherThan(const CanFrame& rhs) const
|
||||
return clean_id < rhs_clean_id;
|
||||
}
|
||||
|
||||
#if UAVCAN_TOSTRING
|
||||
std::string CanFrame::toString(StringRepresentation mode) const
|
||||
{
|
||||
using namespace std; // For snprintf()
|
||||
@@ -115,5 +115,6 @@ std::string CanFrame::toString(StringRepresentation mode) const
|
||||
}
|
||||
return std::string(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user