* M360: Report Firmware configuration * in RepRapFirmware-compatible format */
| 71 | * in RepRapFirmware-compatible format |
| 72 | */ |
| 73 | void GcodeSuite::M360() { |
| 74 | // |
| 75 | // Basics and Enabled items |
| 76 | // |
| 77 | config_line(F("Baudrate"), BAUDRATE); |
| 78 | config_line(F("InputBuffer"), MAX_CMD_SIZE); |
| 79 | config_line(F("PrintlineCache"), BUFSIZE); |
| 80 | config_line(F("MixingExtruder"), bool(ENABLED(MIXING_EXTRUDER))); |
| 81 | config_line(F("SDCard"), bool(ENABLED(HAS_MEDIA))); |
| 82 | config_line(F("Fan"), bool(ENABLED(HAS_FAN))); |
| 83 | config_line(F("LCD"), bool(ENABLED(HAS_DISPLAY))); |
| 84 | config_line(F("SoftwarePowerSwitch"), 1); |
| 85 | config_line(F("SupportLocalFilamentchange"), bool(ENABLED(ADVANCED_PAUSE_FEATURE))); |
| 86 | config_line(F("CaseLights"), bool(ENABLED(CASE_LIGHT_ENABLE))); |
| 87 | config_line(F("ZProbe"), bool(ENABLED(HAS_BED_PROBE))); |
| 88 | config_line(F("Autolevel"), bool(ENABLED(HAS_LEVELING))); |
| 89 | config_line(F("EEPROM"), bool(ENABLED(EEPROM_SETTINGS))); |
| 90 | |
| 91 | // |
| 92 | // Axis letters, in PROGMEM |
| 93 | // |
| 94 | #define _DEFINE_A_STR(Q) PGMSTR(Q##_STR, STR_##Q); |
| 95 | MAIN_AXIS_MAP(_DEFINE_A_STR); |
| 96 | |
| 97 | // |
| 98 | // Homing Directions |
| 99 | // |
| 100 | PGMSTR(H_DIR_STR, "HomeDir"); |
| 101 | #if X_HOME_DIR |
| 102 | config_line(H_DIR_STR, X_HOME_DIR, X_STR); |
| 103 | #endif |
| 104 | #if Y_HOME_DIR |
| 105 | config_line(H_DIR_STR, Y_HOME_DIR, Y_STR); |
| 106 | #endif |
| 107 | #if Z_HOME_DIR |
| 108 | config_line(H_DIR_STR, Z_HOME_DIR, Z_STR); |
| 109 | #endif |
| 110 | #if I_HOME_DIR |
| 111 | config_line(H_DIR_STR, I_HOME_DIR, I_STR); |
| 112 | #endif |
| 113 | #if J_HOME_DIR |
| 114 | config_line(H_DIR_STR, J_HOME_DIR, J_STR); |
| 115 | #endif |
| 116 | #if K_HOME_DIR |
| 117 | config_line(H_DIR_STR, K_HOME_DIR, K_STR); |
| 118 | #endif |
| 119 | #if U_HOME_DIR |
| 120 | config_line(H_DIR_STR, U_HOME_DIR, U_STR); |
| 121 | #endif |
| 122 | #if V_HOME_DIR |
| 123 | config_line(H_DIR_STR, V_HOME_DIR, V_STR); |
| 124 | #endif |
| 125 | #if W_HOME_DIR |
| 126 | config_line(H_DIR_STR, W_HOME_DIR, W_STR); |
| 127 | #endif |
| 128 | |
| 129 | #if ANY(CLASSIC_JERK, HAS_LINEAR_E_JERK) |
| 130 | PGMSTR(JERK_STR, "Jerk"); |
nothing calls this directly
no test coverage detected