Whoops, heh I can be dumb
This commit is contained in:
		
							parent
							
								
									c867aeee78
								
							
						
					
					
						commit
						5b8a26aaf9
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -66,11 +66,13 @@ ISR(TIMER0_COMPB_vect) {
 | 
			
		|||
 * SPI byte receipt interrupt vector
 | 
			
		||||
 */
 | 
			
		||||
ISR(SPI_STC_vect) {
 | 
			
		||||
    uint8_t value = SPDR;
 | 
			
		||||
 | 
			
		||||
    if (buffer.cur < buffer.read) {
 | 
			
		||||
        SPDR = buffer.data[buffer.cur++];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    uart_putchar(SPDR, NULL);
 | 
			
		||||
    uart_putchar(value, NULL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void setup_clock_internal(tabby_clock_speed speed) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue