Apply minimum timing to BLTouch commands (#14369)

This commit is contained in:
BigIronGuru 2019-06-23 00:20:19 +02:00 committed by Scott Lahteine
parent 2247bf1ba5
commit 6578aa4e1b

View file

@ -36,24 +36,22 @@ typedef unsigned char BLTCommand;
#define BLTOUCH_RESET 160 #define BLTOUCH_RESET 160
/** /**
* The following commands may require different delays. * The following commands require different minimum delays.
* *
* ANTClabs recommends 2000ms for 5V/OD commands. However it is * 500ms required for a reliable Reset.
* not common for other commands to immediately follow these,
* and testing has shown that these complete in 500ms reliably.
* *
* AntClabs recommends 750ms for Deploy/Stow, otherwise you will * 750ms required for Deploy/Stow, otherwise the alarm state
* not catch an alarm state until the following move command. * will not be seen until the following move command.
*/ */
#ifndef BLTOUCH_SET5V_DELAY #ifndef BLTOUCH_SET5V_DELAY
#define BLTOUCH_SET5V_DELAY BLTOUCH_DELAY #define BLTOUCH_SET5V_DELAY 150
#endif #endif
#ifndef BLTOUCH_SETOD_DELAY #ifndef BLTOUCH_SETOD_DELAY
#define BLTOUCH_SETOD_DELAY BLTOUCH_DELAY #define BLTOUCH_SETOD_DELAY 150
#endif #endif
#ifndef BLTOUCH_MODE_STORE_DELAY #ifndef BLTOUCH_MODE_STORE_DELAY
#define BLTOUCH_MODE_STORE_DELAY BLTOUCH_DELAY #define BLTOUCH_MODE_STORE_DELAY 150
#endif #endif
#ifndef BLTOUCH_DEPLOY_DELAY #ifndef BLTOUCH_DEPLOY_DELAY
#define BLTOUCH_DEPLOY_DELAY 750 #define BLTOUCH_DEPLOY_DELAY 750
@ -62,7 +60,7 @@ typedef unsigned char BLTCommand;
#define BLTOUCH_STOW_DELAY 750 #define BLTOUCH_STOW_DELAY 750
#endif #endif
#ifndef BLTOUCH_RESET_DELAY #ifndef BLTOUCH_RESET_DELAY
#define BLTOUCH_RESET_DELAY BLTOUCH_DELAY #define BLTOUCH_RESET_DELAY 500
#endif #endif
class BLTouch { class BLTouch {