service/nwm_uds: Ensure consistency regarding node IDs
Previously, when connecting, the host was using the incorrect node_id to update `node_info`. This is an attempt to fix tywald's problem with MH, reported on Discord a while ago. I'm not sure if this would actually fix that though.
This commit is contained in:
parent
76253063a3
commit
4918f86622
@ -226,9 +226,7 @@ void NWM_UDS::HandleEAPoLPacket(const Network::WifiPacket& packet) {
|
|||||||
connection_status.nodes[node_id - 1] = node.network_node_id;
|
connection_status.nodes[node_id - 1] = node.network_node_id;
|
||||||
connection_status.total_nodes++;
|
connection_status.total_nodes++;
|
||||||
|
|
||||||
u8 current_nodes = network_info.total_nodes;
|
node_info[node_id - 1] = node;
|
||||||
node_info[current_nodes] = node;
|
|
||||||
|
|
||||||
network_info.total_nodes++;
|
network_info.total_nodes++;
|
||||||
|
|
||||||
node_map[packet.transmitter_address].node_id = node.network_node_id;
|
node_map[packet.transmitter_address].node_id = node.network_node_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user