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 289418f commit 3f012b3
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 3f012b3

Please sign in to comment.