AP_HAL_Linux: added last_transmit_us to CAN stats

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

View File

@ -279,6 +279,7 @@ void CANIface::_pollWrite()
_pending_loopback_ids.insert(tx.frame.id);
}
stats.tx_success++;
stats.last_transmit_us = curr_time;
} else if (res == 0) { // Not transmitted, nor is it an error
stats.tx_full++;
break; // Leaving the loop, the frame remains enqueued for the next retry