[FL-1881] iButton cli: enable "OTG" when performing "onewire search" #725
This commit is contained in:
		
							parent
							
								
									34f9493451
								
							
						
					
					
						commit
						416e1bda35
					
				| @ -248,6 +248,8 @@ void onewire_cli_search(Cli* cli) { | |||||||
|     printf("Search started\r\n"); |     printf("Search started\r\n"); | ||||||
| 
 | 
 | ||||||
|     onewire.start(); |     onewire.start(); | ||||||
|  |     furi_hal_power_enable_otg(); | ||||||
|  | 
 | ||||||
|     while(!done) { |     while(!done) { | ||||||
|         if(onewire.search(address, true) != 1) { |         if(onewire.search(address, true) != 1) { | ||||||
|             printf("Search finished\r\n"); |             printf("Search finished\r\n"); | ||||||
| @ -263,6 +265,8 @@ void onewire_cli_search(Cli* cli) { | |||||||
|         } |         } | ||||||
|         delay(100); |         delay(100); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     furi_hal_power_disable_otg(); | ||||||
|     onewire.stop(); |     onewire.stop(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 SG
						SG