Skip to content

Commit 6d0c478

Browse files
dakejahloystub
andauthored
Apply suggestion from @oystub
Co-authored-by: Øyvind Taksdal Stubhaug <[email protected]>
1 parent 4e62b9d commit 6d0c478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/uavcan/sensors/sensor_bridge.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class UavcanSensorBridgeBase : public IUavcanSensorBridge, public device::Device
143143
template<typename T>
144144
uint32_t make_uavcan_device_id(const uavcan::ReceivedDataStructure<T> &msg) const
145145
{
146-
device::Device::DeviceId device_id;
146+
device::Device::DeviceId device_id{};
147147
device_id.devid_s.devtype = get_device_type();
148148
device_id.devid_s.address = static_cast<uint8_t>(msg.getSrcNodeID().get());
149149
device_id.devid_s.bus_type = device::Device::DeviceBusType_UAVCAN;

0 commit comments

Comments
 (0)