mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 12:53:34 +08:00
Removed sstream in OTR
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
#include <uavcan/transport/outgoing_transfer_registry.hpp>
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
/*
|
||||
* OutgoingTransferRegistryKey
|
||||
*/
|
||||
std::string OutgoingTransferRegistryKey::toString() const
|
||||
{
|
||||
using namespace std;
|
||||
char buf[40];
|
||||
(void)snprintf(buf, sizeof(buf), "dtid=%u tt=%u dnid=%u",
|
||||
int(data_type_id_.get()), int(transfer_type_), int(destination_node_id_.get()));
|
||||
return std::string(buf);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user