 const int encoder0PinB = 3;  // black   PORTD BIT 3
 const byte encoder0PinBMask = 0x08;
 const int encoder0PinZ = 4;  // orange
-volatile long encoder0Pos = 0;
+volatile long encoder0Pos __attribute__ ((section (".noinit")));
+volatile long encoder0Checksum __attribute__ ((section (".noinit")));
+const long encoder0ChecksumKey = 314159265L;
 volatile long encoder0Zero = 0;
 volatile long encoder0ZeroState = 0;
 

// EEPROM library
#include <EEPROM.h>


// IMPORTANT SETTINGS ----------------------------


// NETWORK SETUP  -------

// get motor id (0 for NW motor, 1 for NE, 2 for SE, 3 for SW) from EEPROM address 0
int MOTOR_ID = EEPROM.read(EEPROM_MOTOR_ID);

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, MOTOR_ID };
IPAddress listeningIP(192,168,LOCALNET,42+MOTOR_ID); // you need to set this
