fix
This commit is contained in:
@ -24,8 +24,7 @@ extern const uint8_t SNTP_SOCK;
|
|||||||
|
|
||||||
|
|
||||||
const uint8_t SEND_LI_VN_MODE = 0xe3; // LI: unknown (3), VN: 4, Mode: Client (3)
|
const uint8_t SEND_LI_VN_MODE = 0xe3; // LI: unknown (3), VN: 4, Mode: Client (3)
|
||||||
typedef union __attribute__((__packed__)) {
|
typedef struct s_ntpStruct {
|
||||||
struct s {
|
|
||||||
uint8_t li_vn_mode;
|
uint8_t li_vn_mode;
|
||||||
uint8_t stratum;
|
uint8_t stratum;
|
||||||
uint8_t poll;
|
uint8_t poll;
|
||||||
@ -45,8 +44,11 @@ typedef union __attribute__((__packed__)) {
|
|||||||
//uint64_t xmt;
|
//uint64_t xmt;
|
||||||
uint32_t xmt_h;
|
uint32_t xmt_h;
|
||||||
uint32_t xmt_l;
|
uint32_t xmt_l;
|
||||||
};
|
} t_ntpStruct;
|
||||||
uint8_t b[sizeof(struct s)];
|
|
||||||
|
typedef union __attribute__((__packed__)) {
|
||||||
|
t_ntpStruct s;
|
||||||
|
uint8_t b[sizeof(t_ntpStruct)];
|
||||||
} ntpMsg_t;
|
} ntpMsg_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Reference in New Issue
Block a user