Commit 31c10e79 authored by jdelange's avatar jdelange
Browse files

invalidate request already sent



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2543 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent ecb26dd4
......@@ -497,6 +497,12 @@ int __po_hi_c_driver_serial_linux_sender (__po_hi_task_id task_id, __po_hi_port
request = __po_hi_gqueue_get_most_recent_value (task_id, local_port);
if (request->port == -1)
{
__PO_HI_DEBUG_DEBUG ("[RASTA SPACEWIRE] Send output task %d, port %d : no value to send\n", task_id, port);
return __PO_HI_SUCCESS;
}
destination_port = __po_hi_gqueue_get_destination (task_id, local_port, 0);
__po_hi_msg_reallocate (&msg);
......@@ -522,6 +528,8 @@ int __po_hi_c_driver_serial_linux_sender (__po_hi_task_id task_id, __po_hi_port
__PO_HI_DEBUG_INFO ("\n");
#endif
request->port = __PO_HI_GQUEUE_INVALID_PORT;
return 1;
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment