Skip to content

Commit

Permalink
AP_Networking: correct compilation when network port registering disa…
Browse files Browse the repository at this point in the history
…bled

ports doesn't exist if this condition is false
  • Loading branch information
peterbarker authored and tridge committed Aug 13, 2024
1 parent 1dc87a0 commit f32f3be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Networking/AP_Networking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ void AP_Networking::init()
start_tests();
#endif

#if AP_NETWORKING_REGISTER_PORT_ENABLED
// init network mapped serialmanager ports
ports_init();
#endif
}

/*
Expand Down

0 comments on commit f32f3be

Please sign in to comment.