mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 00:43:35 +08:00
Improved Raft event tracer - added event code to string conversion
This commit is contained in:
@@ -76,6 +76,14 @@ public:
|
||||
class IDynamicNodeIDAllocationServerEventTracer
|
||||
{
|
||||
public:
|
||||
#if UAVCAN_TOSTRING
|
||||
/**
|
||||
* It is safe to call this function with any argument.
|
||||
* If the event code is out of range, an assertion failure will be triggered and an error text will be returned.
|
||||
*/
|
||||
static const char* getEventName(uint16_t code);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The server invokes this method every time it believes that a noteworthy event has happened.
|
||||
* The table of event codes can be found in the server sources.
|
||||
@@ -658,7 +666,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace dynamic_node_id_impl
|
||||
} // namespace dynamic_node_id_server_impl
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user