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