Move define as requested
This commit is contained in:
parent
78708903e8
commit
444daceca3
|
|
@ -1562,13 +1562,13 @@ void EEPROM_read_st(int pos, uint8_t* value, uint8_t size)
|
||||||
|
|
||||||
void st_current_init() //Initialize Digipot Motor Current
|
void st_current_init() //Initialize Digipot Motor Current
|
||||||
{
|
{
|
||||||
|
#ifdef MOTOR_CURRENT_PWM_XY_PIN
|
||||||
uint8_t SilentMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
|
uint8_t SilentMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
|
||||||
if (SilentMode == 0xff){ //set power to High Power (MK2.5) or Normal Power (MK3, unused)
|
if (SilentMode == 0xff){ //set power to High Power (MK2.5) or Normal Power (MK3, unused)
|
||||||
SilentMode = 0;
|
SilentMode = SILENT_MODE_POWER;
|
||||||
eeprom_update_byte((uint8_t*)EEPROM_SILENT, SilentMode);
|
eeprom_update_byte((uint8_t*)EEPROM_SILENT, SilentMode);
|
||||||
}
|
}
|
||||||
SilentModeMenu = SilentMode;
|
SilentModeMenu = SilentMode;
|
||||||
#ifdef MOTOR_CURRENT_PWM_XY_PIN
|
|
||||||
pinMode(MOTOR_CURRENT_PWM_XY_PIN, OUTPUT);
|
pinMode(MOTOR_CURRENT_PWM_XY_PIN, OUTPUT);
|
||||||
pinMode(MOTOR_CURRENT_PWM_Z_PIN, OUTPUT);
|
pinMode(MOTOR_CURRENT_PWM_Z_PIN, OUTPUT);
|
||||||
pinMode(MOTOR_CURRENT_PWM_E_PIN, OUTPUT);
|
pinMode(MOTOR_CURRENT_PWM_E_PIN, OUTPUT);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue