mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 02:31:36 +08:00
Added config macro UAVCAN_TOSTRING
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <uavcan/marshal/bit_stream.hpp>
|
||||
#include <uavcan/transport/transfer_buffer.hpp>
|
||||
|
||||
@@ -73,6 +72,7 @@ int BitStream::read(uint8_t* bytes, const int bitlen)
|
||||
return ResultOk;
|
||||
}
|
||||
|
||||
#if UAVCAN_TOSTRING
|
||||
std::string BitStream::toString() const
|
||||
{
|
||||
std::string out;
|
||||
@@ -97,5 +97,6 @@ std::string BitStream::toString() const
|
||||
}
|
||||
return out;
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user