aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/Ethernet.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-01-27 12:52:06 +0100
committerCristian Maglie <c.maglie@bug.st>2013-01-27 12:52:06 +0100
commit76d436f51501bd47ff463b88a196f517191f58ad (patch)
tree1f22ba2385ad22eca306d67793c0827451f2b50a /libraries/Ethernet/Ethernet.cpp
parentbb9cc4f70c17eed497ab30d7bfe6eebb35055205 (diff)
parentc6287dd6ac33544179a6544b8f3f55a396ec6608 (diff)
Merge branch 'ide-1.5.x' into can
Diffstat (limited to 'libraries/Ethernet/Ethernet.cpp')
-rw-r--r--libraries/Ethernet/Ethernet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/Ethernet/Ethernet.cpp b/libraries/Ethernet/Ethernet.cpp
index 5d28f71..c31a85f 100644
--- a/libraries/Ethernet/Ethernet.cpp
+++ b/libraries/Ethernet/Ethernet.cpp
@@ -10,7 +10,8 @@ uint16_t EthernetClass::_server_port[MAX_SOCK_NUM] = {
int EthernetClass::begin(uint8_t *mac_address)
{
- _dhcp = new DhcpClass();
+ static DhcpClass s_dhcp;
+ _dhcp = &s_dhcp;
// Initialise the basic info