Browse Source

Apply minimum timing to BLTouch commands (#14369)

pull/1/head
BigIronGuru 6 years ago
committed by Scott Lahteine
parent
commit
6578aa4e1b
  1. 18
      Marlin/src/feature/bltouch.h

18
Marlin/src/feature/bltouch.h

@ -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 {

Loading…
Cancel
Save