Skip to content

Commit

Permalink
Merge pull request #21191 from miri64/examples/fix/gnrc_pktdump_dep
Browse files Browse the repository at this point in the history
examples/default: fix dependency modeling
  • Loading branch information
miri64 authored Feb 5, 2025
2 parents 3445cdc + 64756e4 commit b9c63f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/default/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@

#include "shell.h"

#ifdef MODULE_NETIF
#include "net/gnrc/pktdump.h"
#include "net/gnrc.h"
#endif

int main(void)
{
#ifdef MODULE_NETIF
#ifdef MODULE_GNRC_PKTDUMP
gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX_CTX_ALL,
gnrc_pktdump_pid);
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
Expand Down

0 comments on commit b9c63f6

Please sign in to comment.