mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-27 15:02:41 +00:00
Saving node role as a NodeHotentry
This commit is contained in:
parent
c894e4763a
commit
825d333ea4
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user