diff --git a/sw/airborne/modules/sensors/airspeed_ms45xx_i2c.c b/sw/airborne/modules/sensors/airspeed_ms45xx_i2c.c index 1bf4ff0c41..22a8ba7062 100644 --- a/sw/airborne/modules/sensors/airspeed_ms45xx_i2c.c +++ b/sw/airborne/modules/sensors/airspeed_ms45xx_i2c.c @@ -137,7 +137,7 @@ static struct i2c_transaction ms45xx_trans; static Butterworth2LowPass ms45xx_filter; -static void ms45xx_downlink(void) +static void ms45xx_downlink(struct transport_tx *trans, struct link_device *dev) { pprz_msg_send_AIRSPEED_MS45XX(trans, dev, AC_ID, &ms45xx.diff_pressure, @@ -213,7 +213,7 @@ void ms45xx_i2c_event(void) stateSetAirspeed_f(&ms45xx.airspeed); #endif if (ms45xx.sync_send) { - ms45xx_downlink(); + ms45xx_downlink(&(DefaultChannel).trans_tx, &(DefaultDevice).device); } } diff --git a/sw/airborne/modules/sensors/temp_adc.c b/sw/airborne/modules/sensors/temp_adc.c index 2a1c04f729..1a610d9179 100644 --- a/sw/airborne/modules/sensors/temp_adc.c +++ b/sw/airborne/modules/sensors/temp_adc.c @@ -98,7 +98,7 @@ float calc_lm35(int16_t raw_temp) return ((float)raw_temp * (3300.0f / 1024.0f) / 10.0f); } -static void temp_adc_downlink(void) +static void temp_adc_downlink(struct transport_tx *trans, struct link_device *dev) { pprz_msg_send_TEMP_ADC(trans, dev, AC_ID, &temp_c1, &temp_c2, &temp_c3); } @@ -157,7 +157,7 @@ void temp_adc_periodic(void) #endif if (temp_adc_sync_send) { - temp_adc_downlink(); + temp_adc_downlink(&(DefaultChannel).trans_tx, &(DefaultDevice).device); } }