Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename sub to show intent better

  • Loading branch information...
commit 198e86c186afefa55a3a270969c63dfc2512f667 1 parent bce2a5c
@hartmutbehrens authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 c2e_udp.c
View
4 c2e_udp.c
@@ -132,7 +132,7 @@ void UDP_send_msg(unsigned char *message, uint32_t size, struct ip_addr *ip_addr
udp_remove(pcb);
}
-static void process_received_data(unsigned char *data, uint32_t size)
+static void transfer_to_CAN(unsigned char *data, uint32_t size)
{
uint32_t position = 0;
while (position < size) // more than one CAN frame might be embedded
@@ -166,7 +166,7 @@ void UDP_receive(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_addr
if ( message_starts_with(data, C2E_DATA_ID) ) // received a message with CAN data, so send it out on the CAN i/f
{
uint32_t id_size = sizeof(C2E_DATA_ID);
- process_received_data(&data[id_size], (p->len - id_size) );
+ transfer_to_CAN(&data[id_size], (p->len - id_size) );
}
if ( message_starts_with(data, C2E_BROADCAST_ID) ) // found a gateway, so add the IP address to the list of known gateways
{
Please sign in to comment.
Something went wrong with that request. Please try again.