Moved message encoding/decoding to message.c

This commit is contained in:
2022-08-15 21:14:01 +02:00
parent a051ba41de
commit be210692c6
7 changed files with 26 additions and 155 deletions

View File

@ -378,7 +378,7 @@ int cw_send_response(struct cw_Conn *conn, uint8_t * rawmsg, int len)
{
int rc;
cw_init_response(conn, rawmsg);
rc = cw_assemble_message(conn, conn->resp_buffer);
rc = cw_compose_message(conn, conn->resp_buffer);
if (!cw_result_is_ok(rc))
return 0;
conn_send_msg(conn, conn->resp_buffer);