Skip to content

Commit

Permalink
AP_DroneCAN: mark iface down if no message for 2s
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed May 14, 2024
1 parent d87ca58 commit d5c4de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_DroneCAN/AP_Canard_iface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void CanardInterface::processTx(bool raw_commands_only = false) {
volatile const auto *stats = ifaces[iface]->get_statistics();
uint64_t last_transmit_us = stats==nullptr?0:stats->last_transmit_us;
bool iface_down = true;
if (stats == nullptr || (AP_HAL::micros64() - last_transmit_us) < 200000UL) {
if (stats == nullptr || (AP_HAL::micros64() - last_transmit_us) < 2000000UL) {
/*
We were not able to queue the frame for
sending. Only mark the send as failing if the
Expand Down

0 comments on commit d5c4de9

Please sign in to comment.