No routers allowed! (#7220)

This commit is contained in:
Austin 2025-07-03 16:10:35 -04:00 committed by GitHub
parent 6fa597bc5d
commit f2d3f54824
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -630,6 +630,7 @@ void AdminModule::handleSetConfig(const meshtastic_Config &c)
#if USERPREFS_EVENT_MODE
// If we're in event mode, nobody is a Router or Repeater
if (config.device.role == meshtastic_Config_DeviceConfig_Role_ROUTER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_ROUTER_LATE ||
config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER) {
config.device.role = meshtastic_Config_DeviceConfig_Role_CLIENT;
}