mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
fix(contacts): add missing out_path_hash_mode field for manual_add
The meshcore library's update_contact() reads out_path_hash_mode directly from the contact dict. Without it, add_contact_manual() fails with KeyError: 'out_path_hash_mode'. Default value 0 is correct for new contacts with no known path (flood mode). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1701,6 +1701,7 @@ class DeviceManager:
|
|||||||
'flags': 0,
|
'flags': 0,
|
||||||
'out_path_len': -1,
|
'out_path_len': -1,
|
||||||
'out_path': '',
|
'out_path': '',
|
||||||
|
'out_path_hash_mode': 0,
|
||||||
'adv_name': name,
|
'adv_name': name,
|
||||||
'last_advert': 0,
|
'last_advert': 0,
|
||||||
'adv_lat': 0.0,
|
'adv_lat': 0.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user