Commit 4af7c10b authored by julien.delange's avatar julien.delange
Browse files

* fix the exarm protocol, works fine now



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@780 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 66b02a22
......@@ -24,6 +24,8 @@
#include <po_hi_main.h>
#include <po_hi_task.h>
#include <po_hi_gqueue.h>
#include <po_hi_utils.h>
#include <drivers/po_hi_driver_sockets.h>
#include <activity.h>
......@@ -92,6 +94,20 @@ int __po_hi_driver_exarm_send (__po_hi_task_id task, __po_hi_port_t port)
size_to_write = sizeof (request->vars);
#if 0
{
int i;
uint32_t* swap;
swap = (uint32_t*) &(request->vars);
for (i = 0 ; i < size_to_write / 4 ; i++)
{
__po_hi_swap_byte (*swap);
swap++;
}
}
#endif
int ret = sendto(__po_hi_driver_exarm_socket, &(request->vars), size_to_write, 0, (struct sockaddr*)&__po_hi_driver_exarm_sin, __po_hi_driver_exarm_slen);
if(ret == -1)
......
Supports Markdown
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