AP_HAL_SITL: added last_transmit_us to CAN stats

This commit is contained in:
Andrew Tridgell 2023-09-01 14:42:23 +10:00
parent aaa2746bff
commit 9afc30671f
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ void CANIface::_pollWrite()
bool ok = transport->send(tx.frame); bool ok = transport->send(tx.frame);
if (ok) { if (ok) {
stats.tx_success++; stats.tx_success++;
stats.last_transmit_us = curr_time;
} else { } else {
break; break;
} }