Skip to content

Commit aedabfc

Browse files
fix UIPEthernet guard constant. add note about needing at least 4 KB of SRAM to use UIPEthernt
1 parent 8b57a1d commit aedabfc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/StandardFirmataEthernet/StandardFirmataEthernet.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
* To configure StandardFirmataEthernet to use an ENC28J60 based board include
102102
* 'UIPEthernet.h' (no SPI.h or Ethernet.h required).
103103
* The UIPEthernet-library can be downloaded from: https://github.com/ntruchsess/arduino_uip
104+
*
105+
* NOTE there is not enough memory to use UIPEthenet with an Arduino Uno or Leonardo
106+
* (or other ATmega328 or ATmega32u4 based board). Use an Arduino Mega or other board
107+
* that has at least 4 KB of SRAM.
104108
*/
105109

106110
// #include <UIPEthernet.h>
@@ -125,7 +129,7 @@
125129
// replace with ethernet shield mac. It's mandatory every devices is assigned a unique mac address
126130
const byte mac[] = {0x90, 0xA2, 0xDA, 0x00, 0x53, 0xE5};
127131

128-
#if !defined ethernet_h && !defined _YUN_CLIENT_H_ && !defined UIPEthernet_H
132+
#if !defined ethernet_h && !defined _YUN_CLIENT_H_ && !defined UIPETHERNET_H
129133
#error "you must uncomment the includes for your board configuration. See OPTIONS A, B and C in the NETWORK CONFIGURATION SECTION"
130134
#endif
131135

0 commit comments

Comments
 (0)