Added client-hidden role behavior (#2992)

* Added client-hidden role behavior

* Trunkt

* That line got all boogered up
This commit is contained in:
Ben Meadors
2023-12-06 14:04:09 -06:00
committed by GitHub
parent 28502a762f
commit b4ad6b0f41
3 changed files with 12 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ int32_t NodeInfoModule::runOnce()
bool requestReplies = currentGeneration != radioGeneration;
currentGeneration = radioGeneration;
if (airTime->isTxAllowedAirUtil()) {
if (airTime->isTxAllowedAirUtil() && config.device.role != meshtastic_Config_DeviceConfig_Role_CLIENT_HIDDEN) {
LOG_INFO("Sending our nodeinfo to mesh (wantReplies=%d)\n", requestReplies);
sendOurNodeInfo(NODENUM_BROADCAST, requestReplies); // Send our info (don't request replies)
}