🩹 Prevent BED_TRAMMING_Z_HOP too far (#27939)

This commit is contained in:
RainMotorsports 2025-07-18 23:42:26 -04:00 committed by GitHub
parent 9a23bcec0b
commit e7ac0d14cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ static void _lcd_goto_next_corner() {
}
}
float z = current_position.z + (BED_TRAMMING_Z_HOP);
float z = _MIN(current_position.z + (BED_TRAMMING_Z_HOP), Z_MAX_POS);
#if ALL(BED_TRAMMING_USE_PROBE, BLTOUCH)
z += bltouch.z_extra_clearance();
#endif