@hackinistrator said in trying to understand diagnostics (M122):
what is the min/max pulse width for the under voltage event to register ? i would like to test that .
It's 1ms.
.i think the default homing sequence should be better .
even my 6 years old 8bit board checks if the endstop is pressed before homing , and if it is , it tries to move the motor in the other direction to see if the endstop state changes . if not then something is wrong , and you hae an error.
You can do anything you like in the homing files. We'll look at making the homing files generated by configtool do as you suggest.