Skip to content

Commit 70bf03b

Browse files
committed
Ethernet: fix comment placing belonging to begin function
1 parent 25a3e8a commit 70bf03b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Ethernet/src/Ethernet.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ enum { // compatibility with Arduino ::maintain()
5353
class EthernetClass : public MbedSocketClass {
5454

5555
public:
56-
// Initialise the Ethernet shield to use the provided MAC address and
57-
// gain the rest of the configuration through DHCP.
58-
// Returns 0 if the DHCP configuration failed, and 1 if it succeeded
5956
EthernetClass(EthernetInterface *_if)
6057
: eth_if(_if){};
6158

59+
// Initialise the Ethernet shield to use the provided MAC address and
60+
// gain the rest of the configuration through DHCP.
61+
// Returns 0 if the DHCP configuration failed, and 1 if it succeeded
6262
int begin(uint8_t *mac = nullptr, unsigned long timeout = 60000, unsigned long responseTimeout = 4000);
6363
EthernetLinkStatus linkStatus();
6464
EthernetHardwareStatus hardwareStatus();

0 commit comments

Comments
 (0)