File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
robotiq_hande_driver/include Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ class Communication{
9797 modbus_write_and_read_registers (mb_,
9898 GRIPPER_INPUT_FIRST_REG,
9999 kRegisterWordLength ,
100- ( uint16_t *) output_bytes_,
100+ reinterpret_cast < uint16_t *>( output_bytes_) ,
101101 GRIPPER_OUTPUT_FIRST_REG,
102102 kRegisterWordLength ,
103- ( uint16_t *) input_bytes_);
103+ reinterpret_cast < uint16_t *>( input_bytes_) );
104104 };
105105
106106 /* *
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ class ProtocolLogic{
101101 */
102102 void reset () {
103103 communication_.clear_output_bytes ();
104- communication_.write_action_bit (( uint) ActionRequestPositionBit::ACTIVATE, ( bool ) Activate::DEACTIVATE_GRIPPER);
104+ communication_.write_action_bit (static_cast < uint>( ActionRequestPositionBit::ACTIVATE), static_cast < bool >( Activate::DEACTIVATE_GRIPPER) );
105105 communication_.read_write_registers ();
106106 };
107107
You can’t perform that action at this time.
0 commit comments