File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ use crate::{
3737    target:: Chip , 
3838} ; 
3939
40- pub  mod  reset; 
40+ pub ( crate )  mod  reset; 
4141
4242pub  use  reset:: { ResetAfterOperation ,  ResetBeforeOperation } ; 
4343
Original file line number Diff line number Diff line change @@ -30,25 +30,20 @@ const EXTRA_RESET_DELAY: u64 = 500; // ms
3030
3131/// Reset strategies for resetting a target device. 
3232pub  trait  ResetStrategy  { 
33-     /// Resets the target device. 
3433    fn  reset ( & self ,  serial_port :  & mut  Port )  -> Result < ( ) ,  Error > ; 
3534
36-     /// Sets DTR (data terminal ready) to a specified level. 
3735    fn  set_dtr ( & self ,  serial_port :  & mut  Port ,  level :  bool )  -> Result < ( ) ,  Error >  { 
3836        serial_port. write_data_terminal_ready ( level) ?; 
3937
4038        Ok ( ( ) ) 
4139    } 
4240
43-     /// Sets RTS (request to send) to a specified level. 
4441    fn  set_rts ( & self ,  serial_port :  & mut  Port ,  level :  bool )  -> Result < ( ) ,  Error >  { 
4542        serial_port. write_request_to_send ( level) ?; 
4643
4744        Ok ( ( ) ) 
4845    } 
4946
50-     /// Sets RTS (request to send) and DTS (data termina lready) to specified 
51- /// levels. 
5247    #[ cfg( unix) ]  
5348    fn  set_dtr_rts ( 
5449        & self , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments