Merge remote-tracking branch 'upstream/MK3' into translations-doc

This commit is contained in:
D.R.racer 2019-09-18 15:17:28 +02:00
commit 17cca89993
2 changed files with 9 additions and 6 deletions

View File

@ -1562,10 +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
{ {
uint8_t SilentMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
if (SilentMode == 0xff) SilentMode = 0; //set power to High Power (MK2.5) or Normal Power (MK3, unused)
SilentModeMenu = SilentMode;
#ifdef MOTOR_CURRENT_PWM_XY_PIN #ifdef MOTOR_CURRENT_PWM_XY_PIN
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)
SilentMode = SILENT_MODE_POWER;
eeprom_update_byte((uint8_t*)EEPROM_SILENT, SilentMode);
}
SilentModeMenu = SilentMode;
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);

View File

@ -3048,9 +3048,9 @@ static void lcd_menu_xyz_offset()
for (uint_least8_t i = 0; i < 2; i++) for (uint_least8_t i = 0; i < 2; i++)
{ {
lcd_puts_at_P(11, i + 2, PSTR("")); lcd_set_cursor((cntr[i] < 0) ? 10 : 11, i+2);
lcd_print(cntr[i]); lcd_print(cntr[i]);
lcd_puts_at_P((cntr[i] < 0) ? 17 : 16, i + 2, PSTR("mm")); lcd_puts_at_P(16, i + 2, PSTR("mm"));
} }
menu_back_if_clicked(); menu_back_if_clicked();
} }