Skip to content

Commit

Permalink
warnings (#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Nov 24, 2023
1 parent 92b5ad0 commit 44a3abb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sw/airborne/firmwares/rotorcraft/guidance/guidance_indi_hybrid.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,16 @@ static void send_guidance_indi_hybrid(struct transport_tx *trans, struct link_de
&gi_speed_sp.z);
}

#if GUIDANCE_INDI_HYBRID_USE_WLS
static void debug(struct transport_tx *trans, struct link_device *dev, char* name, float* data, int datasize)
{
pprz_msg_send_DEBUG_VECT(trans, dev,AC_ID,
strlen(name), name,
datasize, data);
}


static void send_guidance_indi_debug(struct transport_tx *trans, struct link_device *dev)
{
#if GUIDANCE_INDI_HYBRID_USE_WLS
static int c = 0;
switch (c++)
{
Expand All @@ -269,10 +268,14 @@ static void send_guidance_indi_debug(struct transport_tx *trans, struct link_dev
c=0;
break;
}
#endif
}
#else
static void send_guidance_indi_debug(struct transport_tx *trans USUSED, struct link_device *dev USUSED)
{
}
#endif // GUIDANCE_INDI_HYBRID_USE_WLS

#endif
#endif // PERIODIC_TELEMETRY

/**
* @brief Init function
Expand Down

0 comments on commit 44a3abb

Please sign in to comment.