|  | @@ -1033,6 +1033,7 @@ void setup()
 | 
	
		
			
				|  |  |  	    MYSERIAL.println("CrashDetect DISABLED");
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +#ifdef TMC2130_LINEARITY_CORRECTION
 | 
	
		
			
				|  |  |  	tmc2130_wave_fac[X_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_X_FAC);
 | 
	
		
			
				|  |  |  	tmc2130_wave_fac[Y_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_Y_FAC);
 | 
	
		
			
				|  |  |  	tmc2130_wave_fac[Z_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_Z_FAC);
 | 
	
	
		
			
				|  | @@ -1041,7 +1042,9 @@ void setup()
 | 
	
		
			
				|  |  |  	if (tmc2130_wave_fac[Y_AXIS] == 0xff) tmc2130_wave_fac[Y_AXIS] = 0;
 | 
	
		
			
				|  |  |  	if (tmc2130_wave_fac[Z_AXIS] == 0xff) tmc2130_wave_fac[Z_AXIS] = 0;
 | 
	
		
			
				|  |  |  	if (tmc2130_wave_fac[E_AXIS] == 0xff) tmc2130_wave_fac[E_AXIS] = 0;
 | 
	
		
			
				|  |  | +#endif //TMC2130_LINEARITY_CORRECTION
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +#ifdef TMC2130_VARIABLE_RESOLUTION
 | 
	
		
			
				|  |  |  	tmc2130_mres[X_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_X_MRES);
 | 
	
		
			
				|  |  |  	tmc2130_mres[Y_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_Y_MRES);
 | 
	
		
			
				|  |  |  	tmc2130_mres[Z_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_Z_MRES);
 | 
	
	
		
			
				|  | @@ -1054,6 +1057,12 @@ void setup()
 | 
	
		
			
				|  |  |  	eeprom_update_byte((uint8_t*)EEPROM_TMC2130_Y_MRES, tmc2130_mres[Y_AXIS]);
 | 
	
		
			
				|  |  |  	eeprom_update_byte((uint8_t*)EEPROM_TMC2130_Z_MRES, tmc2130_mres[Z_AXIS]);
 | 
	
		
			
				|  |  |  	eeprom_update_byte((uint8_t*)EEPROM_TMC2130_E_MRES, tmc2130_mres[E_AXIS]);
 | 
	
		
			
				|  |  | +#else //TMC2130_VARIABLE_RESOLUTION
 | 
	
		
			
				|  |  | +	tmc2130_mres[X_AXIS] = tmc2130_usteps2mres(TMC2130_USTEPS_XY);
 | 
	
		
			
				|  |  | +	tmc2130_mres[Y_AXIS] = tmc2130_usteps2mres(TMC2130_USTEPS_XY);
 | 
	
		
			
				|  |  | +	tmc2130_mres[Z_AXIS] = tmc2130_usteps2mres(TMC2130_USTEPS_Z);
 | 
	
		
			
				|  |  | +	tmc2130_mres[E_AXIS] = tmc2130_usteps2mres(TMC2130_USTEPS_E);
 | 
	
		
			
				|  |  | +#endif //TMC2130_VARIABLE_RESOLUTION
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  #endif //TMC2130
 | 
	
		
			
				|  |  |  
 |