Commit e42b3d525f12ab6892ac560fc424036a8561c303

Authored by Antonio Carlos Domínguez Brito
1 parent 633480f0
Exists in master

adding a change to rx_interrupt() suggested by David Hansel (david@handels.net),…

… it compensates the time the TC timer takes to start running
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
soft_uart.h
... ... @@ -1092,7 +1092,8 @@ namespace arduino_due
1092 1092 rx_data=rx_bit_counter=rx_bit=0;
1093 1093 rx_interrupt_counter=0;
1094 1094  
1095   - if(tx_status==tx_status_codes::IDLE) start_tc_interrupts();
  1095 + if(tx_status==tx_status_codes::IDLE)
  1096 + { start_tc_interrupts(); rx_interrupt_counter=1; }
1096 1097 }
1097 1098 break;
1098 1099  
... ...