Prevent too tight loop on the 1st core
This commit is contained in:
		
							parent
							
								
									3054904768
								
							
						
					
					
						commit
						8974b812f2
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -563,6 +563,8 @@ static void do_rx() | ||||||
| 		if (queue_try_remove(&iq_queue, &block)) { | 		if (queue_try_remove(&iq_queue, &block)) { | ||||||
| 			fwrite(block, IQ_BLOCK_LEN, 1, stdout); | 			fwrite(block, IQ_BLOCK_LEN, 1, stdout); | ||||||
| 			fflush(stdout); | 			fflush(stdout); | ||||||
|  | 		} else { | ||||||
|  | 			sleep_us(25); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue