Added config macro UAVCAN_TOSTRING

This commit is contained in:
Pavel Kirienko
2014-04-10 13:32:35 +04:00
parent 29138214dc
commit d0b541e22d
20 changed files with 62 additions and 21 deletions
@@ -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
}