Revert "Update src/mesh/udp/UdpMulticastHandler.h"

This reverts commit 2b590d2300.
This commit is contained in:
Ben Meadors
2025-09-27 06:10:04 -05:00
parent 2b590d2300
commit 888115e0b9

View File

@@ -78,11 +78,6 @@ class UdpMulticastHandler final
if (!mp || !udp) { if (!mp || !udp) {
return false; return false;
} }
// Validate channel index before accessing
if (chIndex < 0 || chIndex >= channels.size()) {
LOG_ERROR("Invalid channel index %d in UDP onSend", chIndex);
return false;
}
// Check if uplink is enabled for this specific channel // Check if uplink is enabled for this specific channel
auto &ch = channels.getByIndex(chIndex); auto &ch = channels.getByIndex(chIndex);
if (!ch.settings.uplink_enabled) { if (!ch.settings.uplink_enabled) {