Fix DUET_SMART_EFFECTOR
This commit is contained in:
parent
bff0c68078
commit
6036a0df6b
@ -922,7 +922,7 @@ void setup() {
|
|||||||
SETUP_RUN(L64xxManager.init()); // Set up SPI, init drivers
|
SETUP_RUN(L64xxManager.init()); // Set up SPI, init drivers
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
||||||
OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Put Smart Effector into NORMAL mode
|
OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Put Smart Effector into NORMAL mode
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -22,20 +22,12 @@
|
|||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if ENABLED(SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
||||||
|
|
||||||
#include "../gcode.h"
|
#include "../gcode.h"
|
||||||
#include "../../HAL/shared/Delay.h"
|
#include "../../HAL/shared/Delay.h"
|
||||||
#include "../parser.h"
|
#include "../parser.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* M672 - Set/reset Duet Smart Effector sensitivity
|
|
||||||
*
|
|
||||||
* One of these is required:
|
|
||||||
* S<sensitivity> - 0-255
|
|
||||||
* R - Flag to reset sensitivity to default
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Marlin format for the M672 command is different than shown in the Duet Smart Effector
|
* The Marlin format for the M672 command is different than shown in the Duet Smart Effector
|
||||||
* documentation https://duet3d.dozuki.com/Wiki/Smart_effector_and_carriage_adapters_for_delta_printer
|
* documentation https://duet3d.dozuki.com/Wiki/Smart_effector_and_carriage_adapters_for_delta_printer
|
||||||
@ -77,6 +69,13 @@ void M672_send(uint8_t b) { // bit rate requirement: 1KHz +/- 30%
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* M672 - Set/reset Duet Smart Effector sensitivity
|
||||||
|
*
|
||||||
|
* One of these is required:
|
||||||
|
* S<sensitivity> - 0-255
|
||||||
|
* R - Flag to reset sensitivity to default
|
||||||
|
*/
|
||||||
void GcodeSuite::M672() {
|
void GcodeSuite::M672() {
|
||||||
if (parser.seen('R')) {
|
if (parser.seen('R')) {
|
||||||
M672_send(M672_ERASEBYTE);
|
M672_send(M672_ERASEBYTE);
|
||||||
@ -96,4 +95,4 @@ void GcodeSuite::M672() {
|
|||||||
OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Keep Smart Effector in NORMAL mode
|
OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Keep Smart Effector in NORMAL mode
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SMART_EFFECTOR && SMART_EFFECTOR_MOD_PIN
|
#endif // DUET_SMART_EFFECTOR && SMART_EFFECTOR_MOD_PIN
|
||||||
|
@ -790,7 +790,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
|||||||
case 666: M666(); break; // M666: Set delta or multiple endstop adjustment
|
case 666: M666(); break; // M666: Set delta or multiple endstop adjustment
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
||||||
case 672: M672(); break; // M672: Set/clear Duet Smart Effector sensitivity
|
case 672: M672(); break; // M672: Set/clear Duet Smart Effector sensitivity
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@
|
|||||||
* M605 - Set Dual X-Carriage movement mode: "M605 S<mode> [X<x_offset>] [R<temp_offset>]". (Requires DUAL_X_CARRIAGE)
|
* M605 - Set Dual X-Carriage movement mode: "M605 S<mode> [X<x_offset>] [R<temp_offset>]". (Requires DUAL_X_CARRIAGE)
|
||||||
* M665 - Set delta configurations: "M665 H<delta height> L<diagonal rod> R<delta radius> S<segments/s> B<calibration radius> X<Alpha angle trim> Y<Beta angle trim> Z<Gamma angle trim> (Requires DELTA)
|
* M665 - Set delta configurations: "M665 H<delta height> L<diagonal rod> R<delta radius> S<segments/s> B<calibration radius> X<Alpha angle trim> Y<Beta angle trim> Z<Gamma angle trim> (Requires DELTA)
|
||||||
* M666 - Set/get offsets for delta (Requires DELTA) or dual endstops. (Requires [XYZ]_DUAL_ENDSTOPS)
|
* M666 - Set/get offsets for delta (Requires DELTA) or dual endstops. (Requires [XYZ]_DUAL_ENDSTOPS)
|
||||||
* M672 - Set/Reset Duet Smart Effector's sensitivity. (Requires SMART_EFFECTOR and SMART_EFFECTOR_MOD_PIN)
|
* M672 - Set/Reset Duet Smart Effector's sensitivity. (Requires DUET_SMART_EFFECTOR and SMART_EFFECTOR_MOD_PIN)
|
||||||
* M701 - Load filament (Requires FILAMENT_LOAD_UNLOAD_GCODES)
|
* M701 - Load filament (Requires FILAMENT_LOAD_UNLOAD_GCODES)
|
||||||
* M702 - Unload filament (Requires FILAMENT_LOAD_UNLOAD_GCODES)
|
* M702 - Unload filament (Requires FILAMENT_LOAD_UNLOAD_GCODES)
|
||||||
* M810-M819 - Define/execute a G-code macro (Requires GCODE_MACROS)
|
* M810-M819 - Define/execute a G-code macro (Requires GCODE_MACROS)
|
||||||
@ -792,7 +792,7 @@ private:
|
|||||||
static void M666();
|
static void M666();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
||||||
static void M672();
|
static void M672();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user