Skip to content

Commit

Permalink
Removed SITL hardcoded state port number (betaflight#13117)
Browse files Browse the repository at this point in the history
* Removed hardcoded state port number

* Removal of duplicate extra udpInit
  • Loading branch information
JacopoPan authored Oct 13, 2023
1 parent e805c73 commit fe0e0cb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/target/SITL/sitl.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,6 @@ void systemInit(void)
ret = udpInit(&rcLink, NULL, PORT_RC, true);
printf("[SITL] start UDP server for RC input @%d...%d\n", PORT_RC, ret);

ret = udpInit(&stateLink, NULL, 9003, true);
printf("start UDP server...%d\n", ret);

ret = pthread_create(&udpWorker, NULL, udpThread, NULL);
if (ret != 0) {
printf("Create udpWorker error!\n");
Expand Down

0 comments on commit fe0e0cb

Please sign in to comment.