Can you remove all endstop wires from the board, swap the working X wire plug to the Y and Z endstop inputs, and verify with an M119 that each input is working? This will point you to whether it is a firmware/board problem or a switch wiring error with Y and Z.
FWIW, someone on the Google Deltabot forum discovered a physical hardware problem (bad trace?) with his Azteeg X5 Mini, which is why I'm curious about the above test.....
FWIW, someone on the Google Deltabot forum discovered a physical hardware problem (bad trace?) with his Azteeg X5 Mini, which is why I'm curious about the above test.....