|
@@ -1561,14 +1561,14 @@ void EEPROM_read_st(int pos, uint8_t* value, uint8_t size)
|
|
|
|
|
|
|
|
|
void st_current_init()
|
|
|
-{
|
|
|
+{
|
|
|
+#ifdef MOTOR_CURRENT_PWM_XY_PIN
|
|
|
uint8_t SilentMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
|
|
|
if (SilentMode == 0xff){
|
|
|
- SilentMode = 0;
|
|
|
+ SilentMode = SILENT_MODE_POWER;
|
|
|
eeprom_update_byte((uint8_t*)EEPROM_SILENT, SilentMode);
|
|
|
}
|
|
|
SilentModeMenu = SilentMode;
|
|
|
- #ifdef MOTOR_CURRENT_PWM_XY_PIN
|
|
|
pinMode(MOTOR_CURRENT_PWM_XY_PIN, OUTPUT);
|
|
|
pinMode(MOTOR_CURRENT_PWM_Z_PIN, OUTPUT);
|
|
|
pinMode(MOTOR_CURRENT_PWM_E_PIN, OUTPUT);
|
|
@@ -1590,7 +1590,7 @@ void st_current_init()
|
|
|
st_current_set(2, motor_current_setting[2]);
|
|
|
|
|
|
TCCR5B = (TCCR5B & ~(_BV(CS50) | _BV(CS51) | _BV(CS52))) | _BV(CS50);
|
|
|
- #endif
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
|