From d12421b9eb9dc3426e1ba27248a80e0f391cf302 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 2 Jun 2017 18:41:32 +0200 Subject: [PATCH] BMI055: Ensure gyro device ID gets copied to report --- src/drivers/bmi055/bmi055_gyro.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/bmi055/bmi055_gyro.cpp b/src/drivers/bmi055/bmi055_gyro.cpp index bd845a46d6..df5ad8ebbc 100644 --- a/src/drivers/bmi055/bmi055_gyro.cpp +++ b/src/drivers/bmi055/bmi055_gyro.cpp @@ -184,7 +184,7 @@ BMI055_gyro::probe() return OK; } - DEVICE_DEBUG("unexpected whoami 0x%02x", _whoami); + PX4_ERR("unexpected whoami 0x%02x", _whoami); return -EIO; } @@ -768,6 +768,7 @@ BMI055_gyro::measure() grb.temperature_raw = report.temp; grb.temperature = _last_temperature; + grb.device_id = _device_id.devid; _gyro_reports->force(&grb);