Skip to content

Commit

Permalink
Extract G91 to messages.h/cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
leptun committed Nov 18, 2024
1 parent 1319af8 commit 658df9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/first_lay_cal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void lay1cal_meander_start(float layer_height, float extrusion_width)
enquecommandf_P(extrude_fmt_Y, short_length, count_e(layer_height, extrusion_width, short_length));
#endif //_NEW_FIRST_LAYER_CAL

enquecommand_P(PSTR("G91"));
enquecommand_P(MSG_G91); //enable relative XYZ
#ifndef NEW_FIRST_LAYER_CAL
enquecommandf_P(extrude_fmt_X, (float)25*invert, count_e(layer_height, extrusion_width * 4.f, 25));
enquecommandf_P(extrude_fmt_X, (float)25*invert, count_e(layer_height, extrusion_width * 2.f, 25));
Expand Down
1 change: 1 addition & 0 deletions Firmware/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ const char MSG_FILAMENT_RUNOUT_DETECTED[] PROGMEM_N1 = "Filament runout detected
const char G1_E_F2700[] PROGMEM_N1 = "G1 E%-.3f F2700";
const char G28W[] PROGMEM_N1 = "G28 W";
const char MSG_G90[] PROGMEM_N1 = "G90";
const char MSG_G91[] PROGMEM_N1 = "G91";
const char MSG_M23[] PROGMEM_N1 = "M23 %s";
const char MSG_M24[] PROGMEM_N1 = "M24";
const char MSG_M83[] PROGMEM_N1 = "M83";
Expand Down
1 change: 1 addition & 0 deletions Firmware/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ extern const char MSG_FILAMENT_RUNOUT_DETECTED[];
extern const char G1_E_F2700[];
extern const char G28W[];
extern const char MSG_G90[];
extern const char MSG_G91[];
extern const char MSG_M23[];
extern const char MSG_M24[];
extern const char MSG_M83[];
Expand Down

0 comments on commit 658df9d

Please sign in to comment.