Код: Выделить всё
#define ETHERNET_LIBRARY
#if defined(ETHERNET_LIBRARY)
// W5500
#include <Ethernet2.h>
#include <EthernetUdp2.h>
#else
// W5100
#include <Ethernet.h>
#include <EthernetUdp.h>
#endif
Код: Выделить всё
#include <Ethernet2.h>
#include <EthernetUdp2.h>
Код: Выделить всё
#include <Ethernet.h>
#include <EthernetUdp.h>
Ещё раз: ветки переключаются, но переключение не действует на директивы подключения библиотек. Почему?