format code according to conventions [skip ci]
This commit is contained in:
		
							parent
							
								
									1751c3cc25
								
							
						
					
					
						commit
						a7d859dab8
					
				
					 1 changed files with 31 additions and 31 deletions
				
			
		| 
						 | 
					@ -93,7 +93,7 @@ void uart_putchar(uint8_t c) {
 | 
				
			||||||
    i = tx_buffer_head + 1;
 | 
					    i = tx_buffer_head + 1;
 | 
				
			||||||
    if (i >= TX_BUFFER_SIZE) i = 0;
 | 
					    if (i >= TX_BUFFER_SIZE) i = 0;
 | 
				
			||||||
    // return immediately to avoid deadlock when interrupt is disabled(called from ISR)
 | 
					    // return immediately to avoid deadlock when interrupt is disabled(called from ISR)
 | 
				
			||||||
	if (tx_buffer_tail == i && (SREG & (1<<SREG_I)) == 0) return;
 | 
					    if (tx_buffer_tail == i && (SREG & (1 << SREG_I)) == 0) return;
 | 
				
			||||||
    while (tx_buffer_tail == i)
 | 
					    while (tx_buffer_tail == i)
 | 
				
			||||||
        ;  // wait until space in buffer
 | 
					        ;  // wait until space in buffer
 | 
				
			||||||
    // cli();
 | 
					    // cli();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue