From 29bd0ba88f71ed191bd1ddf16106628f0a80d4d8 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Sun, 31 Jan 2021 19:35:27 +0100 Subject: [PATCH] Fix incorrect message byte indices --- messages.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/messages.h b/messages.h index 40df9e6..737be34 100644 --- a/messages.h +++ b/messages.h @@ -12,27 +12,27 @@ typedef struct { uint8_t bits[2]; } can_msg_feedback_status_t; -#define CAN_MSG_FEEDBACK_STATUS_FIELD_RESET_SW 1 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_RESET_SW 0 #define CAN_MSG_FEEDBACK_STATUS_BIT_RESET_SW 0x04 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_H 1 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_H 0 #define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_H 0x02 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_G 1 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_G 0 #define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_G 0x01 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_F 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_F 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_F 0x80 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_E 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_E 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_E 0x40 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_D 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_D 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_D 0x20 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_H 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_H 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_END_H 0x10 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_G 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_G 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_END_G 0x08 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_F 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_F 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_END_F 0x04 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_E 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_E 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_END_E 0x02 -#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_D 0 +#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_D 1 #define CAN_MSG_FEEDBACK_STATUS_BIT_END_D 0x01 #define CAN_MSG_POWER_STATUS 0x011