mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 13:31:27 +08:00
fix(driver): use correct device id for sht3x
This commit is contained in:
committed by
Alexander Lerach
parent
e2eef1e102
commit
a9862ce3e1
@@ -144,7 +144,7 @@ void SHT3X::sensor_compouse_msg(bool send)
|
|||||||
msg.timestamp_sample = measurement_time;
|
msg.timestamp_sample = measurement_time;
|
||||||
msg.temperature = measured_temperature;
|
msg.temperature = measured_temperature;
|
||||||
msg.humidity = measured_humidity;
|
msg.humidity = measured_humidity;
|
||||||
msg.device_id = _sht_info.serial_number;
|
msg.device_id = get_device_id();
|
||||||
_sensor_hygrometer_pub.publish(msg);
|
_sensor_hygrometer_pub.publish(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user