From 5d8710d5393951397f4f2aa1bf03d4357b983cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 28 Jun 2019 17:48:06 +0200 Subject: [PATCH] bmp280: fix device_id initialization --- src/drivers/barometer/bmp280/bmp280.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/barometer/bmp280/bmp280.cpp b/src/drivers/barometer/bmp280/bmp280.cpp index 85bc81220d..6e765f66bc 100644 --- a/src/drivers/barometer/bmp280/bmp280.cpp +++ b/src/drivers/barometer/bmp280/bmp280.cpp @@ -422,6 +422,7 @@ BMP280::collect() /* this should be fairly close to the end of the conversion, so the best approximation of the time */ report.timestamp = hrt_absolute_time(); report.error_count = perf_event_count(_comms_errors); + report.device_id = _interface->get_device_id(); bmp280::data_s *data = _interface->get_data(BMP280_ADDR_DATA);