From f90fe1906856fd708f2f62f49486f94bfacf255f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Jan 2012 10:23:37 -0600 Subject: wmc: fix init command Actually read what struct tm contains and use it correctly, and fix the init command struct size. --- libwmc/src/protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libwmc/src/protocol.h') diff --git a/libwmc/src/protocol.h b/libwmc/src/protocol.h index 1e7df0d8..ef0314cc 100644 --- a/libwmc/src/protocol.h +++ b/libwmc/src/protocol.h @@ -64,7 +64,7 @@ struct WmcCmdInit2 { u_int16_t hours; /* big endian */ u_int16_t minutes; /* big endian */ u_int16_t seconds; /* big endian */ - u_int8_t _unknown1[2]; + u_int8_t _unknown1[3]; } __attribute__ ((packed)); typedef struct WmcCmdInit2 WmcCmdInit2; -- cgit v1.2.3-70-g09d2