mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 01:32:43 +00:00
Fix uart BK regs reading/writing
This commit is contained in:
parent
289418f1c7
commit
3f012b3afe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user