Fix the all-zero MAC address for own node (#11409)
* Fix the all-zero MAC address for own node * Increment native suite count from 46 to 47 * Fix condition for copying MAC address in PhoneAPI
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -615,6 +615,9 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
|
||||
auto info = TypeConversions::ConvertToNodeInfo(us);
|
||||
info.has_hops_away = false;
|
||||
info.is_favorite = true;
|
||||
// NodeInfoLite dropped macaddr, so ConvertToUser() zero-fills it.
|
||||
if (info.has_user)
|
||||
memcpy(info.user.macaddr, owner.macaddr, sizeof(info.user.macaddr));
|
||||
{
|
||||
concurrency::LockGuard guard(&nodeInfoMutex);
|
||||
nodeInfoForPhone = info;
|
||||
|
||||
@@ -1 +1 @@
|
||||
46
|
||||
47
|
||||
Reference in New Issue
Block a user