+
+ #if CPU_AVR
+ const PocketCmdHdr *hdr = (const PocketCmdHdr *)msg.payload;
+ #else
+ #if !CPU_ARM
+ #warning Fix alignment problem..
+ /*
+ * The code below make one memcopy, this the only way to
+ * solve alignment problem on ARM. If you are use other
+ * architecture you should find other way to optimize
+ * this code.
+ */
+ #endif
+ PocketCmdHdr hd;
+ memcpy(&hd, msg.payload, sizeof(PocketCmdHdr));
+ const PocketCmdHdr *hdr = &hd;
+ #endif
+