Using the right interrupts should help

This commit is contained in:
Sebastian 2016-12-26 00:33:19 +01:00
parent 8169cdc6bf
commit 5921624ce2
1 changed files with 3 additions and 3 deletions

View File

@ -60,11 +60,11 @@ uint8_t uart_get_byte() {
return UDR0;
}
ISR(USART2_RX_vect) {
ISR(USART0_RX_vect) {
sss7_process_rx();
}
ISR(USART2_TX_vect) {
ISR(USART0_TX_vect) {
sss7_process_tx();
}
@ -81,7 +81,7 @@ void SSS7Wrapper::setupTimer() {
TIMSK1 = (1 << TOIE1);
}
ISR(TIMER4_OVF_vect) {
ISR(TIMER1_OVF_vect) {
TCNT1 = 65535 - 16000; //Preload for 16000 ticks to overflow
sss7_process_ticks(sss7_timeout_increment);