mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 05:50:36 +08:00
Fix NuttX keepalive socketoption
This commit is contained in:
committed by
Beat Küng
parent
e052f35664
commit
3d30eaae5f
@@ -207,6 +207,13 @@ int ZENOH::setupSession()
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Start read and lease tasks for zenoh-pico
|
||||
if (zp_start_read_task(z_loan_mut(s), NULL) < 0 || zp_start_lease_task(z_loan_mut(s), NULL) < 0) {
|
||||
PX4_ERR("Unable to start read and lease tasks");
|
||||
z_drop(z_move(s));
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -225,13 +232,6 @@ int ZENOH::setupTopics(px4_pollfd_struct_t *pfds)
|
||||
px4_guid[2] = 0xCC;
|
||||
#endif
|
||||
|
||||
// Start read and lease tasks for zenoh-pico
|
||||
if (zp_start_read_task(z_loan_mut(s), NULL) < 0 || zp_start_lease_task(z_loan_mut(s), NULL) < 0) {
|
||||
PX4_ERR("Unable to start read and lease tasks");
|
||||
z_drop(z_move(s));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ZENOH_RMW_LIVELINESS
|
||||
z_id_t self_id = z_info_zid(z_loan(s));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user