Skip to content

Commit dc25c23

Browse files
committed
Fix constructor initialization order
1 parent 310c736 commit dc25c23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

vesc_driver/src/vesc_device_uuid_lookup.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ namespace vesc_driver
2929
using std::placeholders::_1;
3030

3131
VescDeviceLookup::VescDeviceLookup(std::string name)
32-
: vesc_(
32+
: device_(name),
33+
ready_(false),
34+
vesc_(
3335
std::string(),
3436
std::bind(&VescDeviceLookup::vescPacketCallback, this, _1),
3537
std::bind(&VescDeviceLookup::vescErrorCallback, this, _1)
36-
),
37-
ready_(false),
38-
device_(name)
38+
)
3939
{
4040
try {
4141
vesc_.connect(device_);

0 commit comments

Comments
 (0)