[modules] fix some more modules after conversion to telemetry functions

This commit is contained in:
Felix Ruess
2014-11-12 23:30:23 +01:00
parent f9323b9c4c
commit 99120759f2
2 changed files with 4 additions and 4 deletions
@@ -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);
}
}
+2 -2
View File
@@ -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);
}
}