   pinMode(GEND1, INPUT);
   pinMode(GEND2, INPUT);
   pinMode(GEND3, INPUT);
+
+  digitalWrite(GEND0, LOW);
+  digitalWrite(GEND1, LOW);
+  digitalWrite(GEND2, LOW);
+  digitalWrite(GEND3, LOW);
 #endif
 
   buflen = 0;

  Ethernet.begin(mac, ip);
  server.begin();
#endif
//  wdt_enable(WDTO_8S); // Use the watchdog in case the Genesis hangs during a transfer
}

void loop()
{
//  wdt_reset();
#ifdef TCPBRIDGE
  if(!client.connected())
  {

#define GENACK GENTL
#define GENOUT GENTR

#include <SPI.h>         // needed for Arduino versions later than 0018
#ifdef TCPBRIDGE
#include <Ethernet.h>
