mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 18:52:30 +00:00
Revert "Update src/mesh/udp/UdpMulticastHandler.h"
This reverts commit 2b590d2300.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user