mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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);
|
||||
|
||||
_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;
|
||||
|
||||
Reference in New Issue
Block a user