mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00
updated var name
This commit is contained in:
parent
651c24602f
commit
f2eb04951c
@ -54,10 +54,10 @@ void NodeInfoModule::sendOurNodeInfo(NodeNum dest, bool wantReplies, uint8_t cha
|
||||
LOG_DEBUG("Send ourNodeInfo to channel %d", channel);
|
||||
p->channel = channel;
|
||||
}
|
||||
#ifdef USERPREFS_CONFIG_DISCOVERY_CHANNEL_HASH
|
||||
#ifdef USERPREFS_NODEINFO_BROADCAST_CHANNEL_HASH
|
||||
// If this is a broadcast over the default channel, we can safely change this to the discovery channel if defined
|
||||
if (dest == NODENUM_BROADCAST && channel == 0) {
|
||||
int8_t discoveryChannelIdx = channels.getIndexByHash((ChannelHash)USERPREFS_CONFIG_DISCOVERY_CHANNEL_HASH);
|
||||
int8_t discoveryChannelIdx = channels.getIndexByHash((ChannelHash)USERPREFS_NODEINFO_BROADCAST_CHANNEL_HASH);
|
||||
// Fallback to primary channel if discovery channel is not found by its hash
|
||||
p->channel = discoveryChannelIdx > 0 ? discoveryChannelIdx : channel;
|
||||
}
|
||||
|
@ -34,5 +34,5 @@
|
||||
// "USERPREFS_USE_ADMIN_KEY_0": "{ 0xcd, 0xc0, 0xb4, 0x3c, 0x53, 0x24, 0xdf, 0x13, 0xca, 0x5a, 0xa6, 0x0c, 0x0d, 0xec, 0x85, 0x5a, 0x4c, 0xf6, 0x1a, 0x96, 0x04, 0x1a, 0x3e, 0xfc, 0xbb, 0x8e, 0x33, 0x71, 0xe5, 0xfc, 0xff, 0x3c }",
|
||||
// "USERPREFS_USE_ADMIN_KEY_1": "{}",
|
||||
// "USERPREFS_USE_ADMIN_KEY_2": "{}"
|
||||
// "USERPREFS_CONFIG_DISCOVERY_CHANNEL_HASH": "8"
|
||||
// "USERPREFS_NODEINFO_BROADCAST_CHANNEL_HASH": "8"
|
||||
}
|
Loading…
Reference in New Issue
Block a user