fixed wrong field name

This commit is contained in:
Thies Lennart Alff 2025-02-20 17:35:59 +01:00
parent d071a5350a
commit 381963b988
Signed by: lennartalff
GPG key ID: 4EC67D34D594104D
5 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ void hydrolink_ack_msg_encode(uint8_t src_id, uint8_t dst_id, const hydrolink_ms
packet->id = HYDROLINK_MSG_ID_ACK;
packet->src_id = src_id;
packet->dst_id = dst_id;
packet->length = HYDROLINK_MSG_ID_1_LEN + HYDROLINK_NON_PAYLOAD_LEN;
packet->payload_length = HYDROLINK_MSG_ID_1_LEN + HYDROLINK_NON_PAYLOAD_LEN;
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 0, msg->ack);
}

View file

@ -14,7 +14,7 @@ void hydrolink_get_cmd_msg_encode(uint8_t src_id, uint8_t dst_id, const hydrolin
packet->id = HYDROLINK_MSG_ID_GET_CMD;
packet->src_id = src_id;
packet->dst_id = dst_id;
packet->length = HYDROLINK_MSG_ID_4_LEN + HYDROLINK_NON_PAYLOAD_LEN;
packet->payload_length = HYDROLINK_MSG_ID_4_LEN + HYDROLINK_NON_PAYLOAD_LEN;
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 0, msg->index);
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 1, msg->cmd_id);
}

View file

@ -15,7 +15,7 @@ void hydrolink_get_response_msg_encode(uint8_t src_id, uint8_t dst_id, const hyd
packet->id = HYDROLINK_MSG_ID_GET_RESPONSE;
packet->src_id = src_id;
packet->dst_id = dst_id;
packet->length = HYDROLINK_MSG_ID_3_LEN + HYDROLINK_NON_PAYLOAD_LEN;
packet->payload_length = HYDROLINK_MSG_ID_3_LEN + HYDROLINK_NON_PAYLOAD_LEN;
hydrolink_put_int32_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 0, msg->value);
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 4, msg->result);
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 5, msg->cmd_id);

View file

@ -15,7 +15,7 @@ void hydrolink_set_cmd_msg_encode(uint8_t src_id, uint8_t dst_id, const hydrolin
packet->id = HYDROLINK_MSG_ID_SET_CMD;
packet->src_id = src_id;
packet->dst_id = dst_id;
packet->length = HYDROLINK_MSG_ID_2_LEN + HYDROLINK_NON_PAYLOAD_LEN;
packet->payload_length = HYDROLINK_MSG_ID_2_LEN + HYDROLINK_NON_PAYLOAD_LEN;
hydrolink_put_int32_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 0, msg->value);
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 4, msg->index);
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 5, msg->cmd_id);

View file

@ -14,7 +14,7 @@ void hydrolink_set_response_msg_encode(uint8_t src_id, uint8_t dst_id, const hyd
packet->id = HYDROLINK_MSG_ID_SET_RESPONSE;
packet->src_id = src_id;
packet->dst_id = dst_id;
packet->length = HYDROLINK_MSG_ID_3_LEN + HYDROLINK_NON_PAYLOAD_LEN;
packet->payload_length = HYDROLINK_MSG_ID_3_LEN + HYDROLINK_NON_PAYLOAD_LEN;
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 0, msg->result);
hydrolink_put_uint8_t(HYDROLINK_PAYLOAD_NON_CONST(packet), 1, msg->cmd_id);
}