mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-08 12:10:34 +08:00
Improved doc for PanicBroadcaster
This commit is contained in:
@@ -22,10 +22,10 @@ void PanicBroadcaster::handleTimerEvent(const TimerEvent&)
|
||||
publishOnce();
|
||||
}
|
||||
|
||||
void PanicBroadcaster::panic(const char* short_reason)
|
||||
void PanicBroadcaster::panic(const char* short_reason_description)
|
||||
{
|
||||
msg_.reason_text.clear();
|
||||
const char* p = short_reason;
|
||||
const char* p = short_reason_description;
|
||||
while (p && *p)
|
||||
{
|
||||
if (msg_.reason_text.size() == msg_.reason_text.capacity())
|
||||
|
||||
Reference in New Issue
Block a user