mirror of
				https://github.com/liberatedsystems/openCom-Companion.git
				synced 2025-07-08 05:07:21 +02:00 
			
		
		
		
	Change RNode bluetooth usage at runtime
This commit is contained in:
		
							parent
							
								
									bd53bef16e
								
							
						
					
					
						commit
						990cfb024a
					
				@ -1259,6 +1259,13 @@ class SidebandCore():
 | 
			
		||||
            while True:
 | 
			
		||||
                time.sleep(SidebandCore.SERVICE_JOB_INTERVAL)
 | 
			
		||||
                now = time.time()
 | 
			
		||||
 | 
			
		||||
                if hasattr(self, "interface_rnode") and self.interface_rnode != None:
 | 
			
		||||
                    if self.config["hw_rnode_bluetooth"]:
 | 
			
		||||
                        self.interface_rnode.allow_bluetooth = True
 | 
			
		||||
                    else:
 | 
			
		||||
                        self.interface_rnode.allow_bluetooth = False
 | 
			
		||||
 | 
			
		||||
                if self.getstate("wants.announce"):
 | 
			
		||||
                    self.lxmf_announce()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user