Improves G12 zig-zag pattern

This commit is contained in:
João Brázio
2016-06-23 00:23:55 +01:00
parent b05a75655a
commit 021544f572
3 changed files with 60 additions and 33 deletions

View File

@ -2718,7 +2718,7 @@ inline void gcode_G4() {
#endif //FWRETRACT
#if ENABLED(CLEAN_NOZZLE_FEATURE) && ENABLED(AUTO_BED_LEVELING_FEATURE)
#include "clean_nozzle.h"
#include "nozzle.h"
inline void gcode_G12() {
// Don't allow nozzle cleaning without homing first
@ -2729,8 +2729,9 @@ inline void gcode_G4() {
uint8_t const pattern = code_seen('P') ? code_value_ushort() : 0;
uint8_t const strokes = code_seen('S') ? code_value_ushort() : CLEAN_NOZZLE_STROKES;
uint8_t const objects = code_seen('T') ? code_value_ushort() : 3;
CleanNozzle::start(pattern, strokes);
Nozzle::clean(pattern, strokes, objects);
}
#endif