|
7 | 7 | #define STR(x) STR_HELPER(x) |
8 | 8 |
|
9 | 9 | // Firmware version |
10 | | -#define FW_VERSION "3.1.1-RC5" |
11 | | -#define FW_COMMIT_NR 151 |
| 10 | +#define FW_VERSION "3.1.1" |
| 11 | +#define FW_COMMIT_NR 197 |
12 | 12 | // FW_VERSION_UNKNOWN means this is an unofficial build. |
13 | 13 | // The firmware should only be checked into github with this symbol. |
14 | 14 | #define FW_DEV_VERSION FW_VERSION_UNKNOWN |
|
93 | 93 | #define EEPROM_UVLO_FAN_SPEED (EEPROM_UVLO_FEEDRATE - 1) |
94 | 94 | #define EEPROM_FAN_CHECK_ENABLED (EEPROM_UVLO_FAN_SPEED - 1) |
95 | 95 | #define EEPROM_UVLO_MESH_BED_LEVELING (EEPROM_FAN_CHECK_ENABLED - 9*2) |
| 96 | + |
96 | 97 | #define EEPROM_UVLO_Z_MICROSTEPS (EEPROM_UVLO_MESH_BED_LEVELING - 2) |
97 | 98 | #define EEPROM_UVLO_E_ABS (EEPROM_UVLO_Z_MICROSTEPS - 1) |
98 | | -#define EEPROM_UVLO_CURRENT_POSITION_E (EEPROM_UVLO_E_ABS - 4) //float for current position in E |
| 99 | +#define EEPROM_UVLO_CURRENT_POSITION_E (EEPROM_UVLO_E_ABS - 4) //float for current position in E |
99 | 100 |
|
100 | 101 | // Crash detection mode EEPROM setting |
101 | | -#define EEPROM_CRASH_DET (EEPROM_UVLO_MESH_BED_LEVELING-12) |
| 102 | +#define EEPROM_CRASH_DET (EEPROM_UVLO_CURRENT_POSITION_E - 5) // float (orig EEPROM_UVLO_MESH_BED_LEVELING-12) |
| 103 | +// Crash detection counter Y (last print) |
| 104 | +#define EEPROM_CRASH_COUNT_Y (EEPROM_CRASH_DET - 1) // uint8 (orig EEPROM_UVLO_MESH_BED_LEVELING-15) |
102 | 105 | // Filament sensor on/off EEPROM setting |
103 | | -#define EEPROM_FSENSOR (EEPROM_UVLO_MESH_BED_LEVELING-14) |
104 | | -// Crash detection counter |
105 | | -#define EEPROM_CRASH_COUNT (EEPROM_UVLO_MESH_BED_LEVELING-15) |
106 | | -// Filament runout/error coutner |
107 | | -#define EEPROM_FERROR_COUNT (EEPROM_UVLO_MESH_BED_LEVELING-16) |
108 | | -// Power loss errors |
109 | | -#define EEPROM_POWER_COUNT (EEPROM_UVLO_MESH_BED_LEVELING-17) |
110 | | - |
111 | | -#define EEPROM_XYZ_CAL_SKEW (EEPROM_POWER_COUNT - 4) //float for skew backup |
| 106 | +#define EEPROM_FSENSOR (EEPROM_CRASH_COUNT_Y - 1) // uint8 (orig EEPROM_UVLO_MESH_BED_LEVELING-14) |
| 107 | +// Crash detection counter X (last print) |
| 108 | +#define EEPROM_CRASH_COUNT_X (EEPROM_FSENSOR - 1) // uint8 (orig EEPROM_UVLO_MESH_BED_LEVELING-15) |
| 109 | +// Filament runout/error coutner (last print) |
| 110 | +#define EEPROM_FERROR_COUNT (EEPROM_CRASH_COUNT_X - 1) // uint8 (orig EEPROM_UVLO_MESH_BED_LEVELING-16) |
| 111 | +// Power loss errors (last print) |
| 112 | +#define EEPROM_POWER_COUNT (EEPROM_FERROR_COUNT - 1) // uint8 (orig EEPROM_UVLO_MESH_BED_LEVELING-17) |
| 113 | + |
| 114 | +#define EEPROM_XYZ_CAL_SKEW (EEPROM_POWER_COUNT - 4) // float for skew backup |
112 | 115 | #define EEPROM_WIZARD_ACTIVE (EEPROM_XYZ_CAL_SKEW - 1) |
113 | | -#define EEPROM_BELTSTATUS_X (EEPROM_WIZARD_ACTIVE - 2) //uint16 |
114 | | -#define EEPROM_BELTSTATUS_Y (EEPROM_BELTSTATUS_X - 2) //uint16 |
| 116 | +#define EEPROM_BELTSTATUS_X (EEPROM_WIZARD_ACTIVE - 2) // uint16 |
| 117 | +#define EEPROM_BELTSTATUS_Y (EEPROM_BELTSTATUS_X - 2) // uint16 |
115 | 118 |
|
116 | 119 | #define EEPROM_DIR_DEPTH (EEPROM_BELTSTATUS_Y-1) |
117 | 120 | #define EEPROM_DIRS (EEPROM_DIR_DEPTH-80) //8 chars for each dir name, max 10 levels |
|
126 | 129 | #define EEPROM_BED_CORRECTION_REAR_RIGHT (EEPROM_BED_CORRECTION_FRONT_RIGHT - 1) |
127 | 130 | #define EEPROM_BED_CORRECTION_REAR_LEFT (EEPROM_BED_CORRECTION_REAR_RIGHT - 1) |
128 | 131 | // End Hyperfine Bed Tuning |
| 132 | +// Crash detection counter X (total) |
| 133 | +#define EEPROM_CRASH_COUNT_X_TOT (EEPROM_FSENS_AUTOLOAD_ENABLED - 2) // uint16 |
| 134 | +// Crash detection counter Y (total) |
| 135 | +#define EEPROM_CRASH_COUNT_Y_TOT (EEPROM_CRASH_COUNT_X_TOT - 2) // uint16 |
| 136 | +// Filament runout/error coutner (total) |
| 137 | +#define EEPROM_FERROR_COUNT_TOT (EEPROM_CRASH_COUNT_Y_TOT - 2) // uint16 |
| 138 | +// Power loss errors (total) |
| 139 | +#define EEPROM_POWER_COUNT_TOT (EEPROM_FERROR_COUNT_TOT - 2) // uint16 |
| 140 | + |
129 | 141 |
|
130 | 142 | //TMC2130 configuration |
131 | 143 | #define EEPROM_TMC_AXIS_SIZE //axis configuration block size |
|
0 commit comments