Commit 8813959c authored by yoogx's avatar yoogx

* Correct __po_hi_msg_swap_value

parent d4be6993
......@@ -99,6 +99,7 @@ int __po_hi_msg_should_swap (__po_hi_msg_t* msg)
#endif
return 0;
}
#endif
void __po_hi_msg_swap_value (void* from, void* dest, __po_hi_uint8_t size)
{
......@@ -111,10 +112,9 @@ void __po_hi_msg_swap_value (void* from, void* dest, __po_hi_uint8_t size)
for (tmp=0 ; tmp < size ; tmp++)
{
udest[tmp] = ufrom[size-tmp];
udest[tmp] = ufrom[size-tmp - 1];
}
}
#endif
#ifdef __PO_HI_DEBUG
void __po_hi_messages_debug (__po_hi_msg_t* msg)
......
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