Fix BLTouch pre-3.0 compatibility (#13454)
This commit is contained in:
		
				
					committed by
					
						 Scott Lahteine
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							a0ca98f699
						
					
				
				
					commit
					407202cc0f
				
			| @@ -41,13 +41,26 @@ public: | |||||||
|   static bool triggered(); |   static bool triggered(); | ||||||
|  |  | ||||||
|   FORCE_INLINE static void reset()       { command(BLTOUCH_RESET); } |   FORCE_INLINE static void reset()       { command(BLTOUCH_RESET); } | ||||||
|   FORCE_INLINE static void set_5V_mode() { command(BLTOUCH_5V_MODE); } |  | ||||||
|   FORCE_INLINE static void set_OD_mode() { command(BLTOUCH_OD_MODE); } |  | ||||||
|   FORCE_INLINE static void set_SW_mode() { command(BLTOUCH_SW_MODE); } |  | ||||||
|   FORCE_INLINE static void selftest()    { command(BLTOUCH_SELFTEST); } |   FORCE_INLINE static void selftest()    { command(BLTOUCH_SELFTEST); } | ||||||
|  |  | ||||||
|   FORCE_INLINE static bool deploy() { return set_deployed(true); } |   FORCE_INLINE static void set_5V_mode() {  | ||||||
|   FORCE_INLINE static bool stow()   { return set_deployed(false); } |     #if ENABLED(BLTOUCH_V3) | ||||||
|  |       command(BLTOUCH_5V_MODE); | ||||||
|  |     #endif | ||||||
|  |   } | ||||||
|  |   FORCE_INLINE static void set_OD_mode() { | ||||||
|  |     #if ENABLED(BLTOUCH_V3) | ||||||
|  |       command(BLTOUCH_OD_MODE); | ||||||
|  |     #endif | ||||||
|  |   } | ||||||
|  |   FORCE_INLINE static void set_SW_mode() { | ||||||
|  |     #if ENABLED(BLTOUCH_V3) | ||||||
|  |       command(BLTOUCH_SW_MODE); | ||||||
|  |     #endif | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   FORCE_INLINE static bool deploy()      { return set_deployed(true); } | ||||||
|  |   FORCE_INLINE static bool stow()        { return set_deployed(false); } | ||||||
|  |  | ||||||
|   FORCE_INLINE static void _deploy()     { command(BLTOUCH_DEPLOY); } |   FORCE_INLINE static void _deploy()     { command(BLTOUCH_DEPLOY); } | ||||||
|   FORCE_INLINE static void _stow()       { command(BLTOUCH_STOW); } |   FORCE_INLINE static void _stow()       { command(BLTOUCH_STOW); } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user