| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -192,8 +192,8 @@ def thermald_thread(): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if health is not None: | 
					 | 
					 | 
					 | 
					    if health is not None: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      usb_power = health.health.usbPowerMode != log.HealthData.UsbPowerMode.client | 
					 | 
					 | 
					 | 
					      usb_power = health.health.usbPowerMode != log.HealthData.UsbPowerMode.client | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    # get_network_type is an expensive call. update every 3s | 
					 | 
					 | 
					 | 
					    # get_network_type is an expensive call. update every 10s | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (count % int(3. / DT_TRML)) == 0: | 
					 | 
					 | 
					 | 
					    if (count % int(10. / DT_TRML)) == 0: | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      try: | 
					 | 
					 | 
					 | 
					      try: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        network_type = get_network_type() | 
					 | 
					 | 
					 | 
					        network_type = get_network_type() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      except subprocess.CalledProcessError: | 
					 | 
					 | 
					 | 
					      except subprocess.CalledProcessError: | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |