@@ -137,18 +137,18 @@ impl DynamixelProtocolHandler {
137137 & self ,
138138 serial_port : & mut dyn serialport:: SerialPort ,
139139 id : u8 ,
140- conserve_id : bool ,
140+ conserve_id_only : bool ,
141141 conserve_id_and_baudrate : bool ,
142142 ) -> Result < ( ) > {
143143 match & self . protocol {
144144 ProtocolKind :: V1 ( p) => {
145- if conserve_id || conserve_id_and_baudrate {
145+ if conserve_id_only || conserve_id_and_baudrate {
146146 return Err ( Box :: new ( CommunicationErrorKind :: Unsupported ) ) ;
147147 }
148- p. factory_reset ( serial_port, id, conserve_id , conserve_id_and_baudrate)
148+ p. factory_reset ( serial_port, id, conserve_id_only , conserve_id_and_baudrate)
149149 }
150150 ProtocolKind :: V2 ( p) => {
151- p. factory_reset ( serial_port, id, conserve_id , conserve_id_and_baudrate)
151+ p. factory_reset ( serial_port, id, conserve_id_only , conserve_id_and_baudrate)
152152 }
153153 }
154154 }
@@ -378,12 +378,12 @@ trait Protocol<P: Packet> {
378378 & self ,
379379 port : & mut dyn SerialPort ,
380380 id : u8 ,
381- conserve_id : bool ,
381+ conserve_id_only : bool ,
382382 conserve_id_and_baudrate : bool ,
383383 ) -> Result < ( ) > {
384384 self . send_instruction_packet (
385385 port,
386- P :: factory_reset_packet ( id, conserve_id , conserve_id_and_baudrate) . as_ref ( ) ,
386+ P :: factory_reset_packet ( id, conserve_id_only , conserve_id_and_baudrate) . as_ref ( ) ,
387387 ) ?;
388388 self . read_status_packet ( port, id) . map ( |_| ( ) )
389389 }
0 commit comments