修改socket链接不稳定
Fork of WIZnetInterface by
Revision 29:c91884bd2713, committed 2015-11-17
- Comitter:
- embeddist
- Date:
- Tue Nov 17 06:35:55 2015 +0000
- Parent:
- 28:200e63e513a8
- Child:
- 30:d4ed4f463f3d
- Commit message:
- Fixed setMAC() functions
Changed in this revision
| arch/int/W7500x_toe.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/arch/int/W7500x_toe.cpp Thu Oct 29 13:29:46 2015 +0000
+++ b/arch/int/W7500x_toe.cpp Tue Nov 17 06:35:55 2015 +0000
@@ -76,9 +76,7 @@
bool WIZnet_Chip::setmac()
{
-
- for (int i =0; i < 6; i++) reg_wr<uint8_t>(SHAR+i, mac[i]);
-
+ reg_wr_mac(SHAR, mac);
return true;
}
