Skip to content

Commit 6aa428a

Browse files
committed
修正在64位下的非对齐异常
1 parent 076c8ab commit 6aa428a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ioLibrary/Ethernet/wizchip_conf.h

+1
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ typedef enum
420420
typedef struct wiz_NetInfo_t
421421
{
422422
uint8_t mac[6]; ///< Source Mac Address
423+
uint8_t _pad[2]; ///< avoid 'non-aligned exception' in some cpu. @20201109
423424
uint8_t ip[4]; ///< Source IP Address
424425
uint8_t sn[4]; ///< Subnet Mask
425426
uint8_t gw[4]; ///< Gateway IP Address

0 commit comments

Comments
 (0)