Skip to content

Commit

Permalink
Fix uart BK regs reading/writing
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Dec 30, 2023
1 parent 70a6a06 commit de608a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ static void CMD_0601_ReadBK4819Reg(const uint8_t *pBuffer)

CMD_0601_t *cmd = (CMD_0601_t*) pBuffer;

struct __attribute__((__packed__)) {
struct __attribute__((__packed__)) {
Header_t header;
struct {
struct __attribute__((__packed__)) {
uint8_t reg;
uint16_t value;
} data;
Expand All @@ -461,7 +461,7 @@ static void CMD_0601_ReadBK4819Reg(const uint8_t *pBuffer)

static void CMD_0602_WriteBK4819Reg(const uint8_t *pBuffer)
{
typedef struct __attribute__((__packed__)) {
typedef struct __attribute__((__packed__)) {
Header_t header;
uint8_t reg;
uint16_t value;
Expand Down

0 comments on commit de608a9

Please sign in to comment.