Skip to content

Commit 6c1a92c

Browse files
committed
Revert "Merge branch 'master' of github.com:arduino/Arduino into diskloader_reboot"
This reverts commit df9835efafd13685251749bc210c0b96a18a96a5, reversing changes made to ec45af8bfa9222a807c075dd1db4b5aa798bba03. Conflicts: hardware/arduino/variants/mega/pins_arduino.h libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
1 parent 8ffa971 commit 6c1a92c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/PachubeClient/PachubeClient.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ const int postingInterval = 10000; //delay between updates to Pachube.com
4141
void setup() {
4242
// start serial port:
4343
Serial.begin(9600);
44+
// start the Ethernet connection:
45+
if (Ethernet.begin(mac) == 0) {
46+
Serial.println("Failed to configure Ethernet using DHCP");
47+
// no point in carrying on, so do nothing forevermore:
48+
for(;;)
49+
;
50+
}
4451
// give the ethernet module time to boot up:
4552
delay(1000);
4653
// start the Ethernet connection:

0 commit comments

Comments
 (0)