first_lay_cal.cpp 810 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * first_lay_cal.cpp
  3. *
  4. * Created on: Jun 10, 2019
  5. * Author: marek
  6. */
  7. #include "first_lay_cal.h"
  8. #include "Configuration_prusa.h"
  9. #include "language.h"
  10. static const char cmd_0[] PROGMEM = "M107";
  11. static const char cmd_1[] PROGMEM = "M104 S" STRINGIFY(PLA_PREHEAT_HOTEND_TEMP);
  12. static const char cmd_2[] PROGMEM = "M140 S" STRINGIFY(PLA_PREHEAT_HPB_TEMP);
  13. static const char cmd_3[] PROGMEM = "M190 S" STRINGIFY(PLA_PREHEAT_HPB_TEMP);
  14. static const char cmd_4[] PROGMEM = "M109 S" STRINGIFY(PLA_PREHEAT_HOTEND_TEMP);
  15. static const char cmd_6[] PROGMEM = "G28";
  16. static const char cmd_7[] PROGMEM = "G92 E0.0";
  17. const char * const layer1_cal[8] PROGMEM =
  18. {
  19. cmd_0,
  20. cmd_1,
  21. cmd_2,
  22. cmd_3,
  23. cmd_4,
  24. MSG_M117_V2_CALIBRATION, //TODO missing internationalization
  25. cmd_6,
  26. cmd_7,
  27. };