From 2d4d824a98b1dc08ca184192716fb92642f57ba3 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 5 Sep 2023 13:54:26 +0300 Subject: [PATCH] src/drivers/adc/ads1115: Change adc_report type to PublicationMulti To support several ads1115 modules publishing to different adc_report instances Signed-off-by: Jukka Laitinen --- src/drivers/adc/ads1115/ADS1115.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/adc/ads1115/ADS1115.h b/src/drivers/adc/ads1115/ADS1115.h index 6f3c1e92be2d..79a31198c945 100644 --- a/src/drivers/adc/ads1115/ADS1115.h +++ b/src/drivers/adc/ads1115/ADS1115.h @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include @@ -127,7 +127,7 @@ class ADS1115 : public device::I2C, public I2CSPIDriver private: - uORB::Publication _to_adc_report{ORB_ID(adc_report)}; + uORB::PublicationMulti _to_adc_report{ORB_ID(adc_report)}; static const hrt_abstime SAMPLE_INTERVAL{50_ms};