PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

changing MAX_SOCK_NUM value #22

Closed jgastonraoul closed 6 years ago

jgastonraoul commented 6 years ago

Hi !

There is a compilation problem when we try to change MAX_SOCK_NUM value in w5100.h, because it conflicts with SOCKETS definition (line 264 of MAX_SOCK_NUM). Could we change SOCKETS = 4 to SOCKETS = MAX_SOCK_NUM or set SOCKETS with SSIZE and SMASK in w5100.cpp (that would make sense because socket count depends of socket buffer size...) ?

Regards,

Jérémie

PaulStoffregen commented 6 years ago

Currently the library is not designed to easily change this setting.