mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 04:33:34 +08:00
Added config macro UAVCAN_TOSTRING
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
#include <uavcan/transport/outgoing_transfer_registry.hpp>
|
||||
|
||||
namespace uavcan
|
||||
@@ -10,6 +9,7 @@ namespace uavcan
|
||||
/*
|
||||
* OutgoingTransferRegistryKey
|
||||
*/
|
||||
#if UAVCAN_TOSTRING
|
||||
std::string OutgoingTransferRegistryKey::toString() const
|
||||
{
|
||||
using namespace std;
|
||||
@@ -18,5 +18,6 @@ std::string OutgoingTransferRegistryKey::toString() const
|
||||
int(data_type_id_.get()), int(transfer_type_), int(destination_node_id_.get()));
|
||||
return std::string(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user