Skip to content

Commit

Permalink
src/drivers/adc/ads1115: Change adc_report type to PublicationMulti
Browse files Browse the repository at this point in the history
To support several ads1115 modules publishing to different adc_report instances

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Sep 12, 2023
1 parent 713b654 commit dea9f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/adc/ads1115/ADS1115.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <drivers/device/i2c.h>
#include <px4_platform_common/i2c_spi_buses.h>
#include <uORB/topics/adc_report.h>
#include <uORB/Publication.hpp>
#include <uORB/PublicationMulti.hpp>
#include <lib/perf/perf_counter.h>
#include <drivers/drv_hrt.h>

Expand Down Expand Up @@ -122,7 +122,7 @@ class ADS1115 : public device::I2C, public I2CSPIDriver<ADS1115>

private:

uORB::Publication<adc_report_s> _to_adc_report{ORB_ID(adc_report)};
uORB::PublicationMulti<adc_report_s> _to_adc_report{ORB_ID(adc_report)};

static const hrt_abstime SAMPLE_INTERVAL{50_ms};

Expand Down

0 comments on commit dea9f7c

Please sign in to comment.