mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +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:
@@ -473,12 +473,18 @@ void IridiumSBD::sbdsession_loop(void)
|
|||||||
VERBOSE_INFO("SBD SESSION: SUCCESS (%d)", mo_status);
|
VERBOSE_INFO("SBD SESSION: SUCCESS (%d)", mo_status);
|
||||||
|
|
||||||
_ring_pending = false;
|
_ring_pending = false;
|
||||||
_rx_session_pending = false;
|
|
||||||
_tx_session_pending = false;
|
_tx_session_pending = false;
|
||||||
_last_read_time = hrt_absolute_time();
|
_last_read_time = hrt_absolute_time();
|
||||||
_last_heartbeat = _last_read_time;
|
_last_heartbeat = _last_read_time;
|
||||||
++_successful_sbd_sessions;
|
++_successful_sbd_sessions;
|
||||||
|
|
||||||
|
if (mt_queued > 0) {
|
||||||
|
_rx_session_pending = true;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
_rx_session_pending = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (mt_len > 0) {
|
if (mt_len > 0) {
|
||||||
_rx_read_pending = true;
|
_rx_read_pending = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user