Make the diag pins open collector with pullup.

Solves random crash detected on startup
This commit is contained in:
Alex Voinea 2022-02-13 13:22:09 +01:00 committed by DRracer
parent bb57d99c35
commit 510f13b24a
4 changed files with 22 additions and 32 deletions

View file

@ -2201,7 +2201,7 @@ bool calibrate_z_auto()
#ifdef TMC2130
static void check_Z_crash(void)
{
if (READ(Z_TMC2130_DIAG) != 0) { //Z crash
if (!READ(Z_TMC2130_DIAG)) { //Z crash
FORCE_HIGH_POWER_END;
current_position[Z_AXIS] = 0;
plan_set_position_curposXYZE();