There are two pin definitions in pins.h
#define Z_MIN_PIN 36
#define Z_MAX_PIN -1
Some boards like printrboard have only connections for one endstop. In this case you need the switch the pin number from MIN_PIN to MAX_PIN. If you have a RAMPS with 6 Endstops, you need to put it in the max endsop slot. The best place to replace the PIN definition is in Configuration.h after pins.h is included! In your case put
#define Z_MIN_PIN -1
#define Z_MAX_PIN 36
after
#include "pins.h"
Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on
Facebook and
Twitter!