Skip to content

fix UDP builds on nRF#7394

Merged
caveman99 merged 2 commits into
masterfrom
fix-udp
Jul 20, 2025
Merged

fix UDP builds on nRF#7394
caveman99 merged 2 commits into
masterfrom
fix-udp

Conversation

@caveman99

Copy link
Copy Markdown
Member

No description provided.

@caveman99 caveman99 requested a review from Copilot July 20, 2025 19:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes UDP build issues on nRF platform by conditionally compiling UDP-related code only when Ethernet support is available. The changes wrap the UDP implementation code with HAS_ETHERNET preprocessor conditionals to prevent compilation errors when Ethernet is not configured.

  • Adds conditional compilation guards to prevent UDP code compilation when Ethernet is disabled
  • Includes necessary configuration header to access the HAS_ETHERNET macro

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/platform/nrf52/AsyncUDP.h Wraps header content with HAS_ETHERNET conditional and adds configuration include
src/platform/nrf52/AsyncUDP.cpp Wraps implementation with HAS_ETHERNET conditional compilation guard

Comment thread src/platform/nrf52/AsyncUDP.h Outdated
Comment thread src/platform/nrf52/AsyncUDP.cpp Outdated
@caveman99 caveman99 added the bugfix Pull request that fixes bugs label Jul 20, 2025
@caveman99 caveman99 marked this pull request as draft July 20, 2025 20:00
@caveman99 caveman99 marked this pull request as ready for review July 20, 2025 20:55
@caveman99 caveman99 merged commit b851b15 into master Jul 20, 2025
44 of 47 checks passed
@caveman99 caveman99 deleted the fix-udp branch July 20, 2025 21:13
oscgonfer pushed a commit to fablabbcn/smartcitizen-meshtastic that referenced this pull request Jul 22, 2025
* fix UDP builds on nRF
* fix rp2040 too
oscgonfer pushed a commit to fablabbcn/smartcitizen-meshtastic that referenced this pull request Jul 23, 2025
* fix UDP builds on nRF
* fix rp2040 too
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
* fix UDP builds on nRF
* fix rp2040 too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants