mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
IridiumSBD: Fix for multiple MT messages
If MT messages are waiting on the server immediately restart a new session.
This commit is contained in:
parent
309b5bae98
commit
ff4d95168e
@ -473,12 +473,18 @@ void IridiumSBD::sbdsession_loop(void)
|
||||
VERBOSE_INFO("SBD SESSION: SUCCESS (%d)", mo_status);
|
||||
|
||||
_ring_pending = false;
|
||||
_rx_session_pending = false;
|
||||
_tx_session_pending = false;
|
||||
_last_read_time = hrt_absolute_time();
|
||||
_last_heartbeat = _last_read_time;
|
||||
++_successful_sbd_sessions;
|
||||
|
||||
if (mt_queued > 0) {
|
||||
_rx_session_pending = true;
|
||||
|
||||
} else {
|
||||
_rx_session_pending = false;
|
||||
|
||||
}
|
||||
|
||||
if (mt_len > 0) {
|
||||
_rx_read_pending = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user