From f2eb04951cfe1259e7080ad5ce845f6a6ab6eedb Mon Sep 17 00:00:00 2001 From: medentem Date: Mon, 16 Dec 2024 09:07:31 -0600 Subject: [PATCH] updated var name --- src/modules/NodeInfoModule.cpp | 4 ++-- userPrefs.jsonc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/NodeInfoModule.cpp b/src/modules/NodeInfoModule.cpp index bb7f01545..e93c0cef8 100644 --- a/src/modules/NodeInfoModule.cpp +++ b/src/modules/NodeInfoModule.cpp @@ -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; } diff --git a/userPrefs.jsonc b/userPrefs.jsonc index 5c94925ce..b790577c3 100644 --- a/userPrefs.jsonc +++ b/userPrefs.jsonc @@ -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" } \ No newline at end of file