File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -811,15 +811,13 @@ bool DynamixelHardware::InitDxlReadItems()
811
811
812
812
} else if (gpio.state_interfaces .size () && gpio.parameters .at (" type" ) == " sensor" ) {
813
813
HandlerVarType temp_sensor;
814
- for (auto it : gpio.state_interfaces ) {
815
- uint8_t id = static_cast <uint8_t >(stoi (gpio.parameters .at (" ID" )));
814
+ uint8_t id = static_cast <uint8_t >(stoi (gpio.parameters .at (" ID" )));
816
815
817
- temp_sensor.id = id;
818
- temp_sensor.name = gpio.name ;
819
- for (auto it : gpio.state_interfaces ) {
820
- temp_sensor.interface_name_vec .push_back (it.name );
821
- temp_sensor.value_ptr_vec .push_back (std::make_shared<double >(0.0 ));
822
- }
816
+ temp_sensor.id = id;
817
+ temp_sensor.name = gpio.name ;
818
+ for (auto it : gpio.state_interfaces ) {
819
+ temp_sensor.interface_name_vec .push_back (it.name );
820
+ temp_sensor.value_ptr_vec .push_back (std::make_shared<double >(0.0 ));
823
821
}
824
822
hdl_gpio_sensor_states_.push_back (temp_sensor);
825
823
}
You can’t perform that action at this time.
0 commit comments