STM32: doc comment, fixed error counting

This commit is contained in:
Pavel Kirienko
2015-07-07 19:20:05 +03:00
parent 4247087e5e
commit cdd8bfc5c3
2 changed files with 3 additions and 4 deletions
@@ -467,14 +467,12 @@ void CanIface::handleTxMailboxInterrupt(uavcan::uint8_t mailbox_index, bool txok
had_activity_ = had_activity_ || txok;
TxItem& txi = pending_tx_[mailbox_index];
if (txi.loopback && txok && txi.pending)
{
rx_queue_.push(txi.frame, utc_usec, uavcan::CanIOFlagLoopback);
}
if (!txok)
{
error_cnt_++;
}
txi.pending = false;
}