X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/3a07ca822f74d4fa3ee27719b36c56c0206b8442..9266b741959871619b5431a2b4e4ebdad5567a3d:/client/net.c diff --git a/client/net.c b/client/net.c index 6253d61..1e0790e 100644 --- a/client/net.c +++ b/client/net.c @@ -47,10 +47,10 @@ static void initialize_the_pcb() { struct tattle_message_wire_format { u16_t sender; u16_t seq; - u16_t ago; + u32_t ago; }; -void send_report_packet(u16_t seq, u16_t ago) { +void send_report_packet(u16_t seq, u32_t ago) { cyw43_arch_lwip_begin(); initialize_the_pcb(); @@ -64,7 +64,7 @@ void send_report_packet(u16_t seq, u16_t ago) { (struct tattle_message_wire_format *)(p->payload); msg->sender = htons(config_this_tattler_identity); msg->seq = htons(seq); - msg->ago = htons(ago); + msg->ago = htonl(ago); if (udp_send(the_pcb, p) != ERR_OK) signal_error_by_blinking();