Saving node role as a NodeHotentry

This commit is contained in:
Clive Blackledge 2025-10-13 15:21:30 -07:00
parent c894e4763a
commit 825d333ea4
2 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,7 @@ void NodeDB::syncHotFromCold(size_t index)
hot.channel = node.channel;
hot.next_hop = node.next_hop;
hot.bitfield = node.bitfield;
hot.role = static_cast<uint8_t>(node.user.role);
hot.hops_away = node.hops_away;
uint8_t flags = 0;

View File

@ -54,6 +54,7 @@ struct NodeHotEntry {
uint32_t last_heard = 0;
float snr = 0.0f;
uint32_t bitfield = 0;
uint8_t role = meshtastic_Config_DeviceConfig_Role_CLIENT;
uint8_t channel = 0;
uint8_t next_hop = 0;
uint8_t hops_away = 0;