AP_HAL_ChibiOS: don't timeout after 11 bits on serial irqs

This commit is contained in:
Andy Piper 2021-01-11 20:42:09 +00:00 committed by Bill Geyer
parent 838064082f
commit 754c051aa5
1 changed files with 0 additions and 5 deletions

View File

@ -1353,11 +1353,6 @@ void RCOutput::serial_bit_irq(void)
irq.nbits = 1; irq.nbits = 1;
irq.byte_start_tick = now; irq.byte_start_tick = now;
irq.bitmask = 0; irq.bitmask = 0;
// setup a timeout for 11 bits width, so we aren't left
// waiting at the end of bytes
chSysLockFromISR();
chVTSetI(&irq.serial_timeout, irq.bit_time_tick*11, serial_byte_timeout, irq.waiter);
chSysUnlockFromISR();
} }
} else { } else {
systime_t dt = now - irq.byte_start_tick; systime_t dt = now - irq.byte_start_tick;