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)
|
||||
typedef union __attribute__((__packed__)) {
|
||||
struct s {
|
||||
typedef struct s_ntpStruct {
|
||||
uint8_t li_vn_mode;
|
||||
uint8_t stratum;
|
||||
uint8_t poll;
|
||||
@ -45,8 +44,11 @@ typedef union __attribute__((__packed__)) {
|
||||
//uint64_t xmt;
|
||||
uint32_t xmt_h;
|
||||
uint32_t xmt_l;
|
||||
};
|
||||
uint8_t b[sizeof(struct s)];
|
||||
} t_ntpStruct;
|
||||
|
||||
typedef union __attribute__((__packed__)) {
|
||||
t_ntpStruct s;
|
||||
uint8_t b[sizeof(t_ntpStruct)];
|
||||
} ntpMsg_t;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user