mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uavcan_dynamic_node_id_server - Fixed output coloring
This commit is contained in:
parent
ce4ae983a3
commit
ed96e9f0fd
@ -428,6 +428,7 @@ void redraw(const uavcan_linux::NodePtr& node,
|
||||
|
||||
const auto follower_color_getter = [&](std::uint8_t i)
|
||||
{
|
||||
if (report.state != RaftCore::ServerStateLeader) { return CLIColor::Default; }
|
||||
if (!report.followers[i].node_id.isValid()) { return CLIColor::Red; }
|
||||
if (report.followers[i].match_index != report.last_log_index) { return CLIColor::Magenta; }
|
||||
return CLIColor::Default;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user