From 3f012b3afe3133f981d249fe4034e97fc56d465f Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Sat, 30 Dec 2023 01:57:42 +0100 Subject: [PATCH] Fix uart BK regs reading/writing --- app/uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/uart.c b/app/uart.c index 840b43a45..8d8feac5e 100644 --- a/app/uart.c +++ b/app/uart.c @@ -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; @@ -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;