mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 17:33:33 +08:00
NodeStatusMonitor logic fix
This commit is contained in:
@@ -150,9 +150,9 @@ private:
|
||||
|
||||
if (entry.time_since_last_update_ms100 >= OfflineTimeoutMs100)
|
||||
{
|
||||
Entry new_entry_value;
|
||||
Entry new_entry_value = entry;
|
||||
new_entry_value.time_since_last_update_ms100 = OfflineTimeoutMs100;
|
||||
new_entry_value.status = NodeStatus();
|
||||
new_entry_value.status.mode = protocol::NodeStatus::MODE_OFFLINE;
|
||||
changeNodeStatus(nid, new_entry_value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user